From f12e96bf2453aaabfa00943a2cf457090c397efc Mon Sep 17 00:00:00 2001 From: Tony Jin Date: Thu, 23 Mar 2017 16:13:56 -0700 Subject: [PATCH] Chore: Separately version third-party assets - Move third-party assets into folder alongside versioned preview assets - Separately version third-party assets within the subfolders - This makes it so we don't cache-bust the third-party assets every time we do a preview release - When third-party assets need to be updated, the version under the subdirectory should be changed to the current version - constants.js keeps a list of the version of static assets referenced by the various viewers - Also remove dist/0.112.0 from version control - no need to have the folder there --- .gitignore | 2 +- build/karma.conf.js | 4 +++- build/minify_pdfjs.sh | 13 +++++++++---- build/upgrade_pdfjs.sh | 14 ++++++++------ build/webpack.config.js | 2 +- dist/0.112.0/da-DK/csv.js | 2 -- dist/0.112.0/da-DK/preview.css | 1 - dist/0.112.0/da-DK/preview.js | 2 -- dist/0.112.0/da-DK/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/de-DE/csv.js | 2 -- dist/0.112.0/de-DE/preview.css | 1 - dist/0.112.0/de-DE/preview.js | 2 -- dist/0.112.0/de-DE/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/en-AU/csv.js | 2 -- dist/0.112.0/en-AU/preview.css | 1 - dist/0.112.0/en-AU/preview.js | 2 -- dist/0.112.0/en-AU/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/en-CA/csv.js | 2 -- dist/0.112.0/en-CA/preview.css | 1 - dist/0.112.0/en-CA/preview.js | 2 -- dist/0.112.0/en-CA/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/en-GB/csv.js | 2 -- dist/0.112.0/en-GB/preview.css | 1 - dist/0.112.0/en-GB/preview.js | 2 -- dist/0.112.0/en-GB/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/en-US/csv.js | 2 -- dist/0.112.0/en-US/preview.css | 1 - dist/0.112.0/en-US/preview.js | 2 -- dist/0.112.0/en-US/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/es-ES/csv.js | 2 -- dist/0.112.0/es-ES/preview.css | 1 - dist/0.112.0/es-ES/preview.js | 2 -- dist/0.112.0/es-ES/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/fi-FI/csv.js | 2 -- dist/0.112.0/fi-FI/preview.css | 1 - dist/0.112.0/fi-FI/preview.js | 2 -- dist/0.112.0/fi-FI/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/fr-CA/csv.js | 2 -- dist/0.112.0/fr-CA/preview.css | 1 - dist/0.112.0/fr-CA/preview.js | 2 -- dist/0.112.0/fr-CA/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/fr-FR/csv.js | 2 -- dist/0.112.0/fr-FR/preview.css | 1 - dist/0.112.0/fr-FR/preview.js | 2 -- dist/0.112.0/fr-FR/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/it-IT/csv.js | 2 -- dist/0.112.0/it-IT/preview.css | 1 - dist/0.112.0/it-IT/preview.js | 2 -- dist/0.112.0/it-IT/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/ja-JP/csv.js | 2 -- dist/0.112.0/ja-JP/preview.css | 1 - dist/0.112.0/ja-JP/preview.js | 2 -- dist/0.112.0/ja-JP/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/ko-KR/csv.js | 2 -- dist/0.112.0/ko-KR/preview.css | 1 - dist/0.112.0/ko-KR/preview.js | 2 -- dist/0.112.0/ko-KR/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/nb-NO/csv.js | 2 -- dist/0.112.0/nb-NO/preview.css | 1 - dist/0.112.0/nb-NO/preview.js | 2 -- dist/0.112.0/nb-NO/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/nl-NL/csv.js | 2 -- dist/0.112.0/nl-NL/preview.css | 1 - dist/0.112.0/nl-NL/preview.js | 2 -- dist/0.112.0/nl-NL/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/pl-PL/csv.js | 2 -- dist/0.112.0/pl-PL/preview.css | 1 - dist/0.112.0/pl-PL/preview.js | 2 -- dist/0.112.0/pl-PL/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/pt-BR/csv.js | 2 -- dist/0.112.0/pt-BR/preview.css | 1 - dist/0.112.0/pt-BR/preview.js | 2 -- dist/0.112.0/pt-BR/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/ru-RU/csv.js | 2 -- dist/0.112.0/ru-RU/preview.css | 1 - dist/0.112.0/ru-RU/preview.js | 2 -- dist/0.112.0/ru-RU/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/sv-SE/csv.js | 2 -- dist/0.112.0/sv-SE/preview.css | 1 - dist/0.112.0/sv-SE/preview.js | 2 -- dist/0.112.0/sv-SE/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/tr-TR/csv.js | 2 -- dist/0.112.0/tr-TR/preview.css | 1 - dist/0.112.0/tr-TR/preview.js | 2 -- dist/0.112.0/tr-TR/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/zh-CN/csv.js | 2 -- dist/0.112.0/zh-CN/preview.css | 1 - dist/0.112.0/zh-CN/preview.js | 2 -- dist/0.112.0/zh-CN/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes dist/0.112.0/zh-TW/csv.js | 2 -- dist/0.112.0/zh-TW/preview.css | 1 - dist/0.112.0/zh-TW/preview.js | 2 -- dist/0.112.0/zh-TW/src/lib/loadingIcon.gif | Bin 2545 -> 0 bytes .../doc/0.112.0}/cmaps/78-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/78-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/78-H.bcmap | Bin .../doc/0.112.0}/cmaps/78-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/78-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/78-V.bcmap | Bin .../doc/0.112.0}/cmaps/78ms-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/78ms-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/83pv-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/90ms-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/90ms-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/90msp-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/90msp-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/90pv-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/90pv-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/Add-H.bcmap | Bin .../doc/0.112.0}/cmaps/Add-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/Add-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/Add-V.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-0.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-1.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-3.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-4.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-5.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-6.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-CNS1-UCS2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-0.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-1.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-3.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-4.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-5.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-GB1-UCS2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-0.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-1.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-3.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-4.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-5.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-6.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Japan1-UCS2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Korea1-0.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Korea1-1.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Korea1-2.bcmap | Bin .../doc/0.112.0}/cmaps/Adobe-Korea1-UCS2.bcmap | Bin .../doc/0.112.0}/cmaps/B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/B5pc-H.bcmap | Bin .../doc/0.112.0}/cmaps/B5pc-V.bcmap | Bin .../doc/0.112.0}/cmaps/CNS-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/CNS-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/CNS1-H.bcmap | Bin .../doc/0.112.0}/cmaps/CNS1-V.bcmap | Bin .../doc/0.112.0}/cmaps/CNS2-H.bcmap | Bin .../doc/0.112.0}/cmaps/CNS2-V.bcmap | 0 .../doc/0.112.0}/cmaps/ETHK-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/ETHK-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/ETen-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/ETen-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/ETenms-B5-H.bcmap | 0 .../doc/0.112.0}/cmaps/ETenms-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/Ext-H.bcmap | Bin .../doc/0.112.0}/cmaps/Ext-RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/Ext-RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/Ext-V.bcmap | Bin .../doc/0.112.0}/cmaps/GB-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/GB-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/GB-H.bcmap | 0 .../doc/0.112.0}/cmaps/GB-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBK-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBK-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBK2K-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBK2K-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBKp-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBKp-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBT-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBT-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBT-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBT-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBTpc-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBTpc-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/GBpc-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/GBpc-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/H.bcmap | Bin .../doc/0.112.0}/cmaps/HKdla-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/HKdla-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/HKdlb-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/HKdlb-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/HKgccs-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/HKgccs-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/HKm314-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/HKm314-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/HKm471-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/HKm471-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/HKscs-B5-H.bcmap | Bin .../doc/0.112.0}/cmaps/HKscs-B5-V.bcmap | Bin .../doc/0.112.0}/cmaps/Hankaku.bcmap | Bin .../doc/0.112.0}/cmaps/Hiragana.bcmap | Bin .../doc/0.112.0}/cmaps/KSC-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/KSC-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/KSC-H.bcmap | Bin .../doc/0.112.0}/cmaps/KSC-Johab-H.bcmap | Bin .../doc/0.112.0}/cmaps/KSC-Johab-V.bcmap | Bin .../doc/0.112.0}/cmaps/KSC-V.bcmap | Bin .../doc/0.112.0}/cmaps/KSCms-UHC-H.bcmap | Bin .../doc/0.112.0}/cmaps/KSCms-UHC-HW-H.bcmap | Bin .../doc/0.112.0}/cmaps/KSCms-UHC-HW-V.bcmap | Bin .../doc/0.112.0}/cmaps/KSCms-UHC-V.bcmap | Bin .../doc/0.112.0}/cmaps/KSCpc-EUC-H.bcmap | Bin .../doc/0.112.0}/cmaps/KSCpc-EUC-V.bcmap | Bin .../doc/0.112.0}/cmaps/Katakana.bcmap | Bin .../doc/0.112.0}/cmaps/LICENSE | 0 .../doc/0.112.0}/cmaps/NWP-H.bcmap | Bin .../doc/0.112.0}/cmaps/NWP-V.bcmap | Bin .../doc/0.112.0}/cmaps/RKSJ-H.bcmap | Bin .../doc/0.112.0}/cmaps/RKSJ-V.bcmap | Bin .../doc/0.112.0}/cmaps/Roman.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UCS2-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UCS2-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UTF16-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UTF16-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UTF32-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UTF32-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UTF8-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniCNS-UTF8-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UCS2-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UCS2-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UTF16-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UTF16-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UTF32-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UTF32-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UTF8-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniGB-UTF8-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UCS2-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UCS2-HW-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UCS2-HW-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UCS2-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UTF16-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UTF16-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UTF32-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UTF32-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UTF8-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS-UTF8-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS2004-UTF16-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS2004-UTF16-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS2004-UTF32-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS2004-UTF32-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS2004-UTF8-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJIS2004-UTF8-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJISPro-UCS2-HW-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJISPro-UCS2-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJISPro-UTF8-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniJISX0213-UTF32-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniJISX0213-UTF32-V.bcmap | Bin .../0.112.0}/cmaps/UniJISX02132004-UTF32-H.bcmap | Bin .../0.112.0}/cmaps/UniJISX02132004-UTF32-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UCS2-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UCS2-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UTF16-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UTF16-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UTF32-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UTF32-V.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UTF8-H.bcmap | Bin .../doc/0.112.0}/cmaps/UniKS-UTF8-V.bcmap | Bin .../doc/0.112.0}/cmaps/V.bcmap | Bin .../doc/0.112.0}/cmaps/WP-Symbol.bcmap | Bin .../doc/0.112.0}/compatibility.js | 0 .../doc/0.112.0}/compatibility.min.js | 0 .../doc/0.112.0}/cursors/highlight.cur | Bin .../doc/0.112.0}/cursors/point.cur | Bin .../doc => third-party/doc/0.112.0}/exif.js | 0 .../doc => third-party/doc/0.112.0}/exif.min.js | 0 .../doc => third-party/doc/0.112.0}/pdf.js | 0 .../doc => third-party/doc/0.112.0}/pdf.min.js | 0 .../doc/0.112.0}/pdf.worker.js | 0 .../doc/0.112.0}/pdf.worker.min.js | 0 .../doc/0.112.0}/pdf_viewer.css | 0 .../doc/0.112.0}/pdf_viewer.js | 0 .../doc/0.112.0}/pdf_viewer.min.js | 0 .../media/0.112.0}/shaka-player.compiled.js | 0 .../model3d/0.112.0}/HDR_Env0.png | Bin .../model3d/0.112.0}/HDR_Env1.png | Bin .../model3d/0.112.0}/HDR_Env2.png | Bin .../model3d/0.112.0}/WebVR/VRConfig.js | 0 .../0.112.0}/WebVR/oculusTouchImages/1024/1.jpg | Bin .../0.112.0}/WebVR/oculusTouchImages/1024/2.jpg | Bin .../0.112.0}/WebVR/oculusTouchImages/64/1.jpg | Bin .../0.112.0}/WebVR/oculusTouchImages/64/2.jpg | Bin .../0.112.0}/WebVR/oculusTouchLeft/entities.json | 0 .../0.112.0}/WebVR/oculusTouchLeft/geometry.bin | Bin .../WebVR/oculusTouchRight/entities.json | 0 .../0.112.0}/WebVR/oculusTouchRight/geometry.bin | Bin .../0.112.0}/WebVR/viveController/entities.json | 0 .../0.112.0}/WebVR/viveController/geometry.bin | Bin .../WebVR/viveController/images/2048/1.png | Bin .../WebVR/viveController/images/2048/2.jpg | Bin .../WebVR/viveController/images/2048/3.jpg | Bin .../WebVR/viveController/images/256/4.png | Bin .../WebVR/viveController/images/64/1.png | Bin .../WebVR/viveController/images/64/2.jpg | Bin .../WebVR/viveController/images/64/3.jpg | Bin .../WebVR/viveController/images/64/4.png | Bin .../model3d/0.112.0}/box3d-runtime.min.js | 0 .../model3d/0.112.0}/boxsdk.min.js | 0 .../model3d/0.112.0}/matcap.png | Bin .../model3d/0.112.0}/three.min.js | 0 .../model3d/0.112.0}/webvr-polyfill.js | 0 .../swf => third-party/swf/0.112.0}/swfobject.js | 0 .../text/0.112.0}/github-markdown.css | 0 .../text => third-party/text/0.112.0}/github.css | 0 .../text/0.112.0}/highlight.min.js | 0 .../text/0.112.0}/papaparse.js | 0 .../text/0.112.0}/papaparse.min.js | 0 .../text/0.112.0}/remarkable.min.js | 0 src/lib/__tests__/util-test.js | 2 +- src/lib/constants.js | 8 ++++++++ src/lib/util.js | 2 +- src/lib/viewers/box3d/Box3dRenderer.js | 3 ++- src/lib/viewers/box3d/box3dAssets.js | 4 +++- src/lib/viewers/box3d/model3d/SceneEntities.js | 10 ++++++---- src/lib/viewers/doc/DocBase.js | 5 +++-- src/lib/viewers/doc/docAssets.js | 12 ++++++++++-- src/lib/viewers/media/Dash.js | 3 ++- src/lib/viewers/media/__tests__/Dash-test.js | 3 ++- src/lib/viewers/swf/SWF.js | 3 ++- src/lib/viewers/text/CSV.js | 3 ++- src/lib/viewers/text/Markdown.js | 4 ++-- src/lib/viewers/text/Text.js | 6 +++--- src/lib/viewers/text/__tests__/Markdown-test.js | 3 ++- src/lib/viewers/text/__tests__/Text-test.js | 3 ++- .../doc/{ => 0.112.0}/cmaps/78-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78ms-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/78ms-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/83pv-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/90ms-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/90ms-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/90msp-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/90msp-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/90pv-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/90pv-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Add-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Add-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Add-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Add-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-0.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-1.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-3.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-4.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-5.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-CNS1-6.bcmap | Bin .../{ => 0.112.0}/cmaps/Adobe-CNS1-UCS2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-0.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-1.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-3.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-4.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-5.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-GB1-UCS2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-0.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-1.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-3.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-4.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-5.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Japan1-6.bcmap | Bin .../{ => 0.112.0}/cmaps/Adobe-Japan1-UCS2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Korea1-0.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Korea1-1.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Adobe-Korea1-2.bcmap | Bin .../{ => 0.112.0}/cmaps/Adobe-Korea1-UCS2.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/B5pc-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/B5pc-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/CNS-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/CNS-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/CNS1-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/CNS1-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/CNS2-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/CNS2-V.bcmap | 0 .../doc/{ => 0.112.0}/cmaps/ETHK-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/ETHK-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/ETen-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/ETen-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/ETenms-B5-H.bcmap | 0 .../doc/{ => 0.112.0}/cmaps/ETenms-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Ext-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Ext-RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Ext-RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Ext-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GB-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GB-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GB-H.bcmap | 0 .../doc/{ => 0.112.0}/cmaps/GB-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBK-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBK-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBK2K-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBK2K-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBKp-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBKp-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBT-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBT-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBT-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBT-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBTpc-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBTpc-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBpc-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/GBpc-EUC-V.bcmap | Bin src/third-party/doc/{ => 0.112.0}/cmaps/H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKdla-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKdla-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKdlb-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKdlb-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKgccs-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKgccs-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKm314-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKm314-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKm471-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKm471-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKscs-B5-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/HKscs-B5-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Hankaku.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Hiragana.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSC-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSC-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSC-Johab-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSC-Johab-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSCms-UHC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSCms-UHC-HW-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSCms-UHC-HW-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSCms-UHC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSCpc-EUC-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/KSCpc-EUC-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Katakana.bcmap | Bin src/third-party/doc/{ => 0.112.0}/cmaps/LICENSE | 0 .../doc/{ => 0.112.0}/cmaps/NWP-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/NWP-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/RKSJ-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/RKSJ-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/Roman.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UCS2-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UCS2-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UTF16-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UTF16-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UTF32-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UTF32-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UTF8-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniCNS-UTF8-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UCS2-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UCS2-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UTF16-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UTF16-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UTF32-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UTF32-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UTF8-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniGB-UTF8-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UCS2-H.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS-UCS2-HW-H.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS-UCS2-HW-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UCS2-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UTF16-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UTF16-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UTF32-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UTF32-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UTF8-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniJIS-UTF8-V.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS2004-UTF16-H.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS2004-UTF16-V.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS2004-UTF32-H.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS2004-UTF32-V.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS2004-UTF8-H.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJIS2004-UTF8-V.bcmap | Bin .../cmaps/UniJISPro-UCS2-HW-V.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJISPro-UCS2-V.bcmap | Bin .../{ => 0.112.0}/cmaps/UniJISPro-UTF8-V.bcmap | Bin .../cmaps/UniJISX0213-UTF32-H.bcmap | Bin .../cmaps/UniJISX0213-UTF32-V.bcmap | Bin .../cmaps/UniJISX02132004-UTF32-H.bcmap | Bin .../cmaps/UniJISX02132004-UTF32-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UCS2-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UCS2-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UTF16-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UTF16-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UTF32-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UTF32-V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UTF8-H.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/UniKS-UTF8-V.bcmap | Bin src/third-party/doc/{ => 0.112.0}/cmaps/V.bcmap | Bin .../doc/{ => 0.112.0}/cmaps/WP-Symbol.bcmap | Bin .../doc/{ => 0.112.0}/compatibility.js | 0 .../doc/{ => 0.112.0}/compatibility.min.js | 0 .../doc/{ => 0.112.0}/cursors/highlight.cur | Bin .../doc/{ => 0.112.0}/cursors/point.cur | Bin src/third-party/doc/{ => 0.112.0}/exif.js | 0 src/third-party/doc/{ => 0.112.0}/exif.min.js | 0 src/third-party/doc/{ => 0.112.0}/pdf.js | 0 src/third-party/doc/{ => 0.112.0}/pdf.min.js | 0 src/third-party/doc/{ => 0.112.0}/pdf.worker.js | 0 .../doc/{ => 0.112.0}/pdf.worker.min.js | 0 src/third-party/doc/{ => 0.112.0}/pdf_viewer.css | 0 src/third-party/doc/{ => 0.112.0}/pdf_viewer.js | 0 .../doc/{ => 0.112.0}/pdf_viewer.min.js | 0 .../media/{ => 0.112.0}/shaka-player.compiled.js | 0 .../model3d/{ => 0.112.0}/HDR_Env0.png | Bin .../model3d/{ => 0.112.0}/HDR_Env1.png | Bin .../model3d/{ => 0.112.0}/HDR_Env2.png | Bin .../model3d/{ => 0.112.0}/WebVR/VRConfig.js | 0 .../WebVR/oculusTouchImages/1024/1.jpg | Bin .../WebVR/oculusTouchImages/1024/2.jpg | Bin .../WebVR/oculusTouchImages/64/1.jpg | Bin .../WebVR/oculusTouchImages/64/2.jpg | Bin .../WebVR/oculusTouchLeft/entities.json | 0 .../WebVR/oculusTouchLeft/geometry.bin | Bin .../WebVR/oculusTouchRight/entities.json | 0 .../WebVR/oculusTouchRight/geometry.bin | Bin .../WebVR/viveController/entities.json | 0 .../WebVR/viveController/geometry.bin | Bin .../WebVR/viveController/images/2048/1.png | Bin .../WebVR/viveController/images/2048/2.jpg | Bin .../WebVR/viveController/images/2048/3.jpg | Bin .../WebVR/viveController/images/256/4.png | Bin .../WebVR/viveController/images/64/1.png | Bin .../WebVR/viveController/images/64/2.jpg | Bin .../WebVR/viveController/images/64/3.jpg | Bin .../WebVR/viveController/images/64/4.png | Bin .../model3d/{ => 0.112.0}/box3d-runtime.min.js | 0 .../model3d/{ => 0.112.0}/boxsdk.min.js | 0 src/third-party/model3d/{ => 0.112.0}/matcap.png | Bin .../model3d/{ => 0.112.0}/three.min.js | 0 .../model3d/{ => 0.112.0}/webvr-polyfill.js | 0 src/third-party/swf/{ => 0.112.0}/swfobject.js | 0 .../text/{ => 0.112.0}/github-markdown.css | 0 src/third-party/text/{ => 0.112.0}/github.css | 0 .../text/{ => 0.112.0}/highlight.min.js | 0 src/third-party/text/{ => 0.112.0}/papaparse.js | 0 .../text/{ => 0.112.0}/papaparse.min.js | 0 .../text/{ => 0.112.0}/remarkable.min.js | 0 543 files changed, 73 insertions(+), 146 deletions(-) delete mode 100644 dist/0.112.0/da-DK/csv.js delete mode 100644 dist/0.112.0/da-DK/preview.css delete mode 100644 dist/0.112.0/da-DK/preview.js delete mode 100644 dist/0.112.0/da-DK/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/de-DE/csv.js delete mode 100644 dist/0.112.0/de-DE/preview.css delete mode 100644 dist/0.112.0/de-DE/preview.js delete mode 100644 dist/0.112.0/de-DE/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/en-AU/csv.js delete mode 100644 dist/0.112.0/en-AU/preview.css delete mode 100644 dist/0.112.0/en-AU/preview.js delete mode 100644 dist/0.112.0/en-AU/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/en-CA/csv.js delete mode 100644 dist/0.112.0/en-CA/preview.css delete mode 100644 dist/0.112.0/en-CA/preview.js delete mode 100644 dist/0.112.0/en-CA/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/en-GB/csv.js delete mode 100644 dist/0.112.0/en-GB/preview.css delete mode 100644 dist/0.112.0/en-GB/preview.js delete mode 100644 dist/0.112.0/en-GB/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/en-US/csv.js delete mode 100644 dist/0.112.0/en-US/preview.css delete mode 100644 dist/0.112.0/en-US/preview.js delete mode 100644 dist/0.112.0/en-US/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/es-ES/csv.js delete mode 100644 dist/0.112.0/es-ES/preview.css delete mode 100644 dist/0.112.0/es-ES/preview.js delete mode 100644 dist/0.112.0/es-ES/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/fi-FI/csv.js delete mode 100644 dist/0.112.0/fi-FI/preview.css delete mode 100644 dist/0.112.0/fi-FI/preview.js delete mode 100644 dist/0.112.0/fi-FI/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/fr-CA/csv.js delete mode 100644 dist/0.112.0/fr-CA/preview.css delete mode 100644 dist/0.112.0/fr-CA/preview.js delete mode 100644 dist/0.112.0/fr-CA/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/fr-FR/csv.js delete mode 100644 dist/0.112.0/fr-FR/preview.css delete mode 100644 dist/0.112.0/fr-FR/preview.js delete mode 100644 dist/0.112.0/fr-FR/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/it-IT/csv.js delete mode 100644 dist/0.112.0/it-IT/preview.css delete mode 100644 dist/0.112.0/it-IT/preview.js delete mode 100644 dist/0.112.0/it-IT/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/ja-JP/csv.js delete mode 100644 dist/0.112.0/ja-JP/preview.css delete mode 100644 dist/0.112.0/ja-JP/preview.js delete mode 100644 dist/0.112.0/ja-JP/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/ko-KR/csv.js delete mode 100644 dist/0.112.0/ko-KR/preview.css delete mode 100644 dist/0.112.0/ko-KR/preview.js delete mode 100644 dist/0.112.0/ko-KR/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/nb-NO/csv.js delete mode 100644 dist/0.112.0/nb-NO/preview.css delete mode 100644 dist/0.112.0/nb-NO/preview.js delete mode 100644 dist/0.112.0/nb-NO/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/nl-NL/csv.js delete mode 100644 dist/0.112.0/nl-NL/preview.css delete mode 100644 dist/0.112.0/nl-NL/preview.js delete mode 100644 dist/0.112.0/nl-NL/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/pl-PL/csv.js delete mode 100644 dist/0.112.0/pl-PL/preview.css delete mode 100644 dist/0.112.0/pl-PL/preview.js delete mode 100644 dist/0.112.0/pl-PL/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/pt-BR/csv.js delete mode 100644 dist/0.112.0/pt-BR/preview.css delete mode 100644 dist/0.112.0/pt-BR/preview.js delete mode 100644 dist/0.112.0/pt-BR/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/ru-RU/csv.js delete mode 100644 dist/0.112.0/ru-RU/preview.css delete mode 100644 dist/0.112.0/ru-RU/preview.js delete mode 100644 dist/0.112.0/ru-RU/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/sv-SE/csv.js delete mode 100644 dist/0.112.0/sv-SE/preview.css delete mode 100644 dist/0.112.0/sv-SE/preview.js delete mode 100644 dist/0.112.0/sv-SE/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/tr-TR/csv.js delete mode 100644 dist/0.112.0/tr-TR/preview.css delete mode 100644 dist/0.112.0/tr-TR/preview.js delete mode 100644 dist/0.112.0/tr-TR/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/zh-CN/csv.js delete mode 100644 dist/0.112.0/zh-CN/preview.css delete mode 100644 dist/0.112.0/zh-CN/preview.js delete mode 100644 dist/0.112.0/zh-CN/src/lib/loadingIcon.gif delete mode 100644 dist/0.112.0/zh-TW/csv.js delete mode 100644 dist/0.112.0/zh-TW/preview.css delete mode 100644 dist/0.112.0/zh-TW/preview.js delete mode 100644 dist/0.112.0/zh-TW/src/lib/loadingIcon.gif rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78ms-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/78ms-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/83pv-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/90ms-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/90ms-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/90msp-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/90msp-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/90pv-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/90pv-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Add-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Add-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Add-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Add-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-0.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-1.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-3.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-4.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-5.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-6.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-CNS1-UCS2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-0.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-1.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-3.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-4.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-5.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-GB1-UCS2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-0.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-1.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-3.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-4.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-5.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-6.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Japan1-UCS2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Korea1-0.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Korea1-1.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Korea1-2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Adobe-Korea1-UCS2.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/B5pc-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/B5pc-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/CNS-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/CNS-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/CNS1-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/CNS1-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/CNS2-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/CNS2-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/ETHK-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/ETHK-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/ETen-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/ETen-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/ETenms-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/ETenms-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Ext-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Ext-RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Ext-RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Ext-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GB-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GB-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GB-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GB-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBK-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBK-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBK2K-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBK2K-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBKp-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBKp-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBT-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBT-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBT-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBT-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBTpc-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBTpc-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBpc-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/GBpc-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKdla-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKdla-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKdlb-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKdlb-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKgccs-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKgccs-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKm314-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKm314-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKm471-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKm471-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKscs-B5-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/HKscs-B5-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Hankaku.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Hiragana.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSC-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSC-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSC-Johab-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSC-Johab-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSCms-UHC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSCms-UHC-HW-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSCms-UHC-HW-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSCms-UHC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSCpc-EUC-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/KSCpc-EUC-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Katakana.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/LICENSE (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/NWP-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/NWP-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/RKSJ-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/RKSJ-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/Roman.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UCS2-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UCS2-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UTF16-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UTF16-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UTF8-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniCNS-UTF8-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UCS2-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UCS2-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UTF16-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UTF16-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UTF8-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniGB-UTF8-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UCS2-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UCS2-HW-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UCS2-HW-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UCS2-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UTF16-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UTF16-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UTF8-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS-UTF8-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS2004-UTF16-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS2004-UTF16-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS2004-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS2004-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS2004-UTF8-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJIS2004-UTF8-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISPro-UCS2-HW-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISPro-UCS2-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISPro-UTF8-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISX0213-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISX0213-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISX02132004-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniJISX02132004-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UCS2-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UCS2-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UTF16-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UTF16-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UTF32-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UTF32-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UTF8-H.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/UniKS-UTF8-V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/V.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cmaps/WP-Symbol.bcmap (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/compatibility.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/compatibility.min.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cursors/highlight.cur (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/cursors/point.cur (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/exif.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/exif.min.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf.min.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf.worker.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf.worker.min.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf_viewer.css (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf_viewer.js (100%) rename dist/{0.112.0/third-party/doc => third-party/doc/0.112.0}/pdf_viewer.min.js (100%) rename dist/{0.112.0/third-party/media => third-party/media/0.112.0}/shaka-player.compiled.js (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/HDR_Env0.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/HDR_Env1.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/HDR_Env2.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/VRConfig.js (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchImages/1024/1.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchImages/1024/2.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchImages/64/1.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchImages/64/2.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchLeft/entities.json (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchLeft/geometry.bin (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchRight/entities.json (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/oculusTouchRight/geometry.bin (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/entities.json (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/geometry.bin (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/2048/1.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/2048/2.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/2048/3.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/256/4.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/64/1.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/64/2.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/64/3.jpg (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/WebVR/viveController/images/64/4.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/box3d-runtime.min.js (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/boxsdk.min.js (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/matcap.png (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/three.min.js (100%) rename dist/{0.112.0/third-party/model3d => third-party/model3d/0.112.0}/webvr-polyfill.js (100%) rename dist/{0.112.0/third-party/swf => third-party/swf/0.112.0}/swfobject.js (100%) rename dist/{0.112.0/third-party/text => third-party/text/0.112.0}/github-markdown.css (100%) rename dist/{0.112.0/third-party/text => third-party/text/0.112.0}/github.css (100%) rename dist/{0.112.0/third-party/text => third-party/text/0.112.0}/highlight.min.js (100%) rename dist/{0.112.0/third-party/text => third-party/text/0.112.0}/papaparse.js (100%) rename dist/{0.112.0/third-party/text => third-party/text/0.112.0}/papaparse.min.js (100%) rename dist/{0.112.0/third-party/text => third-party/text/0.112.0}/remarkable.min.js (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78ms-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/78ms-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/83pv-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/90ms-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/90ms-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/90msp-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/90msp-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/90pv-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/90pv-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Add-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Add-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Add-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Add-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-0.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-1.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-3.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-4.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-5.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-6.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-CNS1-UCS2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-0.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-1.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-3.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-4.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-5.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-GB1-UCS2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-0.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-1.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-3.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-4.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-5.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-6.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Japan1-UCS2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Korea1-0.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Korea1-1.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Korea1-2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Adobe-Korea1-UCS2.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/B5pc-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/B5pc-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/CNS-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/CNS-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/CNS1-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/CNS1-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/CNS2-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/CNS2-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/ETHK-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/ETHK-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/ETen-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/ETen-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/ETenms-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/ETenms-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Ext-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Ext-RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Ext-RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Ext-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GB-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GB-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GB-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GB-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBK-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBK-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBK2K-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBK2K-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBKp-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBKp-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBT-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBT-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBT-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBT-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBTpc-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBTpc-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBpc-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/GBpc-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKdla-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKdla-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKdlb-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKdlb-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKgccs-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKgccs-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKm314-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKm314-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKm471-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKm471-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKscs-B5-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/HKscs-B5-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Hankaku.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Hiragana.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSC-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSC-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSC-Johab-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSC-Johab-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSCms-UHC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSCms-UHC-HW-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSCms-UHC-HW-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSCms-UHC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSCpc-EUC-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/KSCpc-EUC-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Katakana.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/LICENSE (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/NWP-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/NWP-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/RKSJ-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/RKSJ-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/Roman.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UCS2-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UCS2-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UTF16-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UTF16-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UTF8-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniCNS-UTF8-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UCS2-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UCS2-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UTF16-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UTF16-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UTF8-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniGB-UTF8-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UCS2-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UCS2-HW-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UCS2-HW-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UCS2-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UTF16-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UTF16-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UTF8-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS-UTF8-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS2004-UTF16-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS2004-UTF16-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS2004-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS2004-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS2004-UTF8-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJIS2004-UTF8-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISPro-UCS2-HW-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISPro-UCS2-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISPro-UTF8-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISX0213-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISX0213-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISX02132004-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniJISX02132004-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UCS2-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UCS2-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UTF16-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UTF16-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UTF32-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UTF32-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UTF8-H.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/UniKS-UTF8-V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/V.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/cmaps/WP-Symbol.bcmap (100%) rename src/third-party/doc/{ => 0.112.0}/compatibility.js (100%) rename src/third-party/doc/{ => 0.112.0}/compatibility.min.js (100%) rename src/third-party/doc/{ => 0.112.0}/cursors/highlight.cur (100%) rename src/third-party/doc/{ => 0.112.0}/cursors/point.cur (100%) rename src/third-party/doc/{ => 0.112.0}/exif.js (100%) rename src/third-party/doc/{ => 0.112.0}/exif.min.js (100%) rename src/third-party/doc/{ => 0.112.0}/pdf.js (100%) rename src/third-party/doc/{ => 0.112.0}/pdf.min.js (100%) rename src/third-party/doc/{ => 0.112.0}/pdf.worker.js (100%) rename src/third-party/doc/{ => 0.112.0}/pdf.worker.min.js (100%) rename src/third-party/doc/{ => 0.112.0}/pdf_viewer.css (100%) rename src/third-party/doc/{ => 0.112.0}/pdf_viewer.js (100%) rename src/third-party/doc/{ => 0.112.0}/pdf_viewer.min.js (100%) rename src/third-party/media/{ => 0.112.0}/shaka-player.compiled.js (100%) rename src/third-party/model3d/{ => 0.112.0}/HDR_Env0.png (100%) rename src/third-party/model3d/{ => 0.112.0}/HDR_Env1.png (100%) rename src/third-party/model3d/{ => 0.112.0}/HDR_Env2.png (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/VRConfig.js (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchImages/1024/1.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchImages/1024/2.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchImages/64/1.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchImages/64/2.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchLeft/entities.json (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchLeft/geometry.bin (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchRight/entities.json (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/oculusTouchRight/geometry.bin (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/entities.json (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/geometry.bin (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/2048/1.png (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/2048/2.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/2048/3.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/256/4.png (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/64/1.png (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/64/2.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/64/3.jpg (100%) rename src/third-party/model3d/{ => 0.112.0}/WebVR/viveController/images/64/4.png (100%) rename src/third-party/model3d/{ => 0.112.0}/box3d-runtime.min.js (100%) rename src/third-party/model3d/{ => 0.112.0}/boxsdk.min.js (100%) rename src/third-party/model3d/{ => 0.112.0}/matcap.png (100%) rename src/third-party/model3d/{ => 0.112.0}/three.min.js (100%) rename src/third-party/model3d/{ => 0.112.0}/webvr-polyfill.js (100%) rename src/third-party/swf/{ => 0.112.0}/swfobject.js (100%) rename src/third-party/text/{ => 0.112.0}/github-markdown.css (100%) rename src/third-party/text/{ => 0.112.0}/github.css (100%) rename src/third-party/text/{ => 0.112.0}/highlight.min.js (100%) rename src/third-party/text/{ => 0.112.0}/papaparse.js (100%) rename src/third-party/text/{ => 0.112.0}/papaparse.min.js (100%) rename src/third-party/text/{ => 0.112.0}/remarkable.min.js (100%) diff --git a/.gitignore b/.gitignore index e1f021d38..79f74d21a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,6 @@ node_modules .DS_Store npm-debug.log reports -dist/dev +dist src/i18n/json jsconfig.json diff --git a/build/karma.conf.js b/build/karma.conf.js index 37cdbef0f..7a52f8da2 100644 --- a/build/karma.conf.js +++ b/build/karma.conf.js @@ -1,5 +1,7 @@ const webpackConfig = require('./webpack.karma.config'); +const MODEL3D_STATIC_ASSETS_VERSION = '0.112.0'; + const getTestFile = (src) => { if (!src) { return [ @@ -81,7 +83,7 @@ module.exports = (config) => config.set({ ], files: [ - 'src/third-party/model3d/three.min.js', + `src/third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/three.min.js`, 'node_modules/babel-polyfill/dist/polyfill.js', 'src/third-party/**/*.js' ].concat(getTestFile(config.src)), diff --git a/build/minify_pdfjs.sh b/build/minify_pdfjs.sh index 0c0d4f13f..d55f9750d 100755 --- a/build/minify_pdfjs.sh +++ b/build/minify_pdfjs.sh @@ -1,13 +1,18 @@ +DOC_STATIC_ASSETS_VERSION=$(./build/current_version.sh) + # Minify using Google Closure Compiler, options: # Output to ECMASCRIPT5 / ES5 (Box supports Chrome, IE11, Firefox, Safari, and newer versions of iOS, Android) # Skip rewriting polyfills since pdf.js includes its own WeakMap polyfill echo "-----------------------------------------------------------------------------------" echo "Minifying pdf.js files with Google Closure... Warnings are okay!" echo "-----------------------------------------------------------------------------------" -java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/pdf.js --js_output_file src/third-party/doc/pdf.min.js -java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/pdf.worker.js --js_output_file src/third-party/doc/pdf.worker.min.js -java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/pdf_viewer.js --js_output_file src/third-party/doc/pdf_viewer.min.js -java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/compatibility.js --js_output_file src/third-party/doc/compatibility.min.js +java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.min.js + +java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.worker.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.worker.min.js + +java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf_viewer.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf_viewer.min.js + +java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/compatibility.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/compatibility.min.js echo "-----------------------------------------------------------------------------------" echo "Successfully updated and minified pdf.js files!" echo "-----------------------------------------------------------------------------------" diff --git a/build/upgrade_pdfjs.sh b/build/upgrade_pdfjs.sh index db9c8d118..b4bb25f5c 100755 --- a/build/upgrade_pdfjs.sh +++ b/build/upgrade_pdfjs.sh @@ -1,3 +1,5 @@ +DOC_STATIC_ASSETS_VERSION=$(./build/current_version.sh) + echo "-----------------------------------------------------------------------------------" echo "Fetching latest pdf.js files from pdfjs-dist repo..." echo "-----------------------------------------------------------------------------------" @@ -8,15 +10,15 @@ echo "-------------------------------------------------------------------------- echo "Copying relevant files to Preview third-party dir..." echo "Note that we are NOT copying compatibility.js - that needs to be manually updated" echo "-----------------------------------------------------------------------------------" -cp pdfjs-dist/build/pdf.js src/third-party/doc/ -cp pdfjs-dist/build/pdf.worker.js src/third-party/doc/ -cp pdfjs-dist/web/pdf_viewer.js src/third-party/doc/ -cp pdfjs-dist/web/pdf_viewer.css src/third-party/doc/ -cp pdfjs-dist/cmaps/* src/third-party/doc/cmaps/ +cp pdfjs-dist/build/pdf.js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/ +cp pdfjs-dist/build/pdf.worker.js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/ +cp pdfjs-dist/web/pdf_viewer.js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/ +cp pdfjs-dist/web/pdf_viewer.css src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/ +cp pdfjs-dist/cmaps/* src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/cmaps/ rm -rf ./pdfjs-dist/ # Fix Chrome console warning issue by not testing for moz-chunked-arraybuffer support in Chrome echo "-----------------------------------------------------------------------------------" echo "Tweaking pdf.worker.js for Chrome..." echo "-----------------------------------------------------------------------------------" -sed -e 's/function supportsMozChunkedClosure/!\(\/Chrome\/\.test\(navigator\.userAgent\)\) \&\& function supportsMozChunkedClosure/' -i '' src/third-party/doc/pdf.worker.js +sed -e 's/function supportsMozChunkedClosure/!\(\/Chrome\/\.test\(navigator\.userAgent\)\) \&\& function supportsMozChunkedClosure/' -i '' src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.worker.js diff --git a/build/webpack.config.js b/build/webpack.config.js index 5b9c20dd0..830cbfbfc 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -13,7 +13,7 @@ const version = isRelease ? require('../package.json').version : 'dev'; const lib = path.resolve('src/lib'); const thirdParty = path.resolve('src/third-party'); -const staticFolder = path.resolve('dist', version); +const staticFolder = path.resolve('dist'); const languages = isRelease ? [ 'en-AU', diff --git a/dist/0.112.0/da-DK/csv.js b/dist/0.112.0/da-DK/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/da-DK/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
"],c=[3,"","
"],d=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/da-DK/preview.js b/dist/0.112.0/da-DK/preview.js deleted file mode 100644 index c5de6aca5..000000000 --- a/dist/0.112.0/da-DK/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),Z=n.n(K),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=Z.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
'+i+"
").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
\n
\n
'.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),Z(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),Z(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),Z(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),Z(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=k,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
\n

\n
\n \n
\n
\n
\n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
\n
\n
\n \n
\n \n \n
\n
\n
\n
\n
\n \n
\n \n \n
\n
\n
\n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Slår op...":h.h(e.user.name)||"En bruger";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
'+r+'
\n
\n
'+n+'
\n
'+o+'
\n
\n
'+a+'
\n \n
\n
\n Skal denne anmærkning slettes?\n
\n
\n \n \n
\n
').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
\n \n
    \n
    \n \n
    ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Klik et vilkårligt sted for at føje en kommentar til dokumentet"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Vi beklager, anmærkninger for denne fil kunne ikke indlæses.";break;case"create":n="Vi beklager, anmærkningen kunne ikke oprettes.",e.showAnnotations();break;case"delete":n="Vi beklager, anmærkningen kunne ikke slettes.",e.showAnnotations();break;case"authorization":n="Din session er udløbet. Genindlæs siden."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Genererer eksempelvisning...";e.querySelector(m.A).textContent="Download fil"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Forrige fil",i.title="Næste fil",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
    \n
    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Forbereder udskrivning...","Udskriv",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Klar til udskrivning.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Vi beklager, eksempelvisningen kunne ikke indlæses. Dette dokument er muligvis beskyttet."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Forbereder udskrivning...","Udskriv",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
    \n
    \n
    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Klar til udskrivning.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Denne fil er blevet beskåret pga. størrelsesbegrænsninger. Download den for at se hele filen.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Download fil",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Vi beklager, eksempelvisningen kunne ikke indlæses. Opdater siden."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Vi beklager, du har ikke tilladelse til at få vist et eksempel på denne fil.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Vi beklager, eksempelvisningen kunne ikke indlæses. Opdater siden."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Vi beklager, eksempelvisningen kunne ikke indlæses. Denne filtype er muligvis ikke understøttet.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
    \n
    \n \n \n \n
    \n
    \n
    \n \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \n
    \n
    \n
    \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} fremhævet",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Vi beklager, din browser understøtter ikke eksempelvisning for {1}.",["360-graders billeder"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Vi beklager, din browser understøtter ikke eksempelvisning for {1}.",["3D-modeller"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Vi beklager, dette filformat er ikke understøttet."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Vi beklager, din browser understøtter ikke eksempelvisning for {1}.",["360-graders videoer"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
    \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Klik for at angive sidetal",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Næste side",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Skift til fuld skærm",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Afslut fuld skærm",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom ud",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zoom ind",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Forrige side",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Klik for at angive sidetal",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Næste side",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Skift til fuld skærm",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Afslut fuld skærm",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Roter mod venstre",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Skift til fuld skærm",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Afslut fuld skærm",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Skift til fuld skærm",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Afslut fuld skærm",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
    ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Afspil"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Lydløs"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Skift til fuld skærm"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Indstillinger"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Medieskyder",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Lydstyrkeskyder",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Afslut fuld skærm":"Skift til fuld skærm";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Afspil")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Lyd til":"Lydløs";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Vi beklager, din browser understøtter ikke eksempelvisning for {1}.",["360-graders videoer"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
    \n
    Hastighed
    \n
    Normal
    \n
    '+p.s+'
    \n
    \n
    \n
    Kvalitet
    \n
    Automatisk
    \n
    '+p.s+'
    \n
    \n
    \n
    '+p.t+'
    \n
    Hastighed
    \n
    \n
    \n
    '+p.l+'
    \n
    0.25
    \n
    \n
    \n
    '+p.l+'
    \n
    0.5
    \n
    \n
    \n
    '+p.l+'
    \n
    Normal
    \n
    \n
    \n
    '+p.l+'
    \n
    1.25
    \n
    \n
    \n
    '+p.l+'
    \n
    1.5
    \n
    \n
    \n
    '+p.l+'
    \n
    2.0
    \n
    \n
    \n
    '+p.t+'
    \n
    Kvalitet
    \n
    \n
    \n
    '+p.l+'
    \n
    480p
    \n
    \n
    \n
    '+p.l+'
    \n
    1080p
    \n
    \n
    \n
    '+p.l+'
    \n
    Automatisk
    \n
    \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
    \n
    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Ze="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Ze]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
    \n
    \n \n \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n \n
    \n'},function(e,t){e.exports='
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n  / \n \n \n \n
    \n
    \n'},function(e,t){e.exports='
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n {{accessibilityText}}\n
    \n
    \n
    \n
    \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/da-DK/src/lib/loadingIcon.gif b/dist/0.112.0/da-DK/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/de-DE/csv.js b/dist/0.112.0/de-DE/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/de-DE/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
    "],c=[3,"","
    "],d=[1,'',""],p={"*":[1,"?
    ","
    "],area:[1,"",""],col:[2,"","
    "],legend:[1,"
    ","
    "],param:[1,"",""],tr:[2,"","
    "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
    ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/de-DE/preview.js b/dist/0.112.0/de-DE/preview.js deleted file mode 100644 index b5561e0d3..000000000 --- a/dist/0.112.0/de-DE/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(H)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=H}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),D&&(e[R]=D),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),D&&(o=o+"&"+j+"="+encodeURI(D)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",D="0.112.0",H=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),D=n.n(A),H=n(353),M=n.n(H),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),Z=n.n(K),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return De}),n.d(t,"z",function(){return He}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=D.a,Oe=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=Z.a,je=Y.a,Ae=ee.a,De=ne.a,He=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
    '+i+"
    ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
    \n
    \n
    '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var D=document.createElement("div");j.areHostMethods(D,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(D,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(D,"innerHTML")||t.fail("Element is missing innerHTML property");var H=document.createTextNode("test");j.areHostMethods(H,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(D,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(H,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
    ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?H.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=H.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+H.inspectNode(e.startContainer)+":"+e.startOffset+", "+H.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(H.isBrokenNode(e.startContainer)||H.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),Z(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),Z(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),Z(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),Z(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=H.parentElement(t)),i=null===i||"HTML"==i.nodeName&&H.isHtmlNamespace(F(i).documentElement)&&H.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,H.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,H.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new D(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||H.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return D.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(D,A),M.extend(D,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=D}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=k,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),H(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
    \n

    \n
    \n \n
    \n
    \n
    \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
    \n
    \n
    \n \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \n
    \n
    \n
    \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Wird gepostet...":h.h(e.user.name)||"Beliebiger Benutzer";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
    '+r+'
    \n
    \n
    '+n+'
    \n
    '+o+'
    \n
    \n
    '+a+'
    \n \n
    \n
    \n Diese Anmerkung löschen?\n
    \n
    \n \n \n
    \n
    ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
    \n \n
      \n
      \n \n
      ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Klicken Sie an einer beliebigen Stelle, um einen Kommentar im Dokument hinzuzufügen"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Anmerkungen für diese Datei konnten leider nicht geladen werden.";break;case"create":n="Die Anmerkung konnte leider nicht erstellt werden.",e.showAnnotations();break;case"delete":n="Die Anmerkung konnte leider nicht gelöscht werden.",e.showAnnotations();break;case"authorization":n="Ihre Sitzung ist abgelaufen. Bitte aktualisieren Sie die Seite."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Vorschau wird erzeugt ...";e.querySelector(m.A).textContent="Datei herunterladen"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Vorherige Datei",i.title="Nächste Datei",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
      \n
      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Druck wird vorbereitet...","Drucken",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Druckbereit.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?H:D),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Die Vorschau konnte leider nicht geladen werden. Möglicherweise ist dieses Dokument geschützt."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Druck wird vorbereitet...","Drucken",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
      \n
      \n
      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Druckbereit.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Diese Datei ist aufgrund von Größenbeschränkungen abgeschnitten. Bitte laden Sie sie herunter, um die ganze Datei anzuzeigen.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Datei herunterladen",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Die Vorschau konnte leider nicht geladen werden. Bitte aktualisieren Sie die Seite."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Leider sind Sie nicht berechtigt, diese Datei in der Vorschau anzuzeigen.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},H*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Die Vorschau konnte leider nicht geladen werden. Bitte aktualisieren Sie die Seite."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Die Vorschau konnte leider nicht geladen werden. Möglicherweise wird dieser Dateityp nicht unterstützt.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||D.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
      \n
      \n \n \n \n
      \n
      \n
      \n \n
      \n \n \n
      \n
      \n
      \n
      \n
      \n \n
      \n \n \n
      \n
      \n
      \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} markiert",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Leider ist es mit Ihrem Browser nicht möglich, eine Vorschau für {1} anzuzeigen.",["360-Grad-Bilder"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Leider ist es mit Ihrem Browser nicht möglich, eine Vorschau für {1} anzuzeigen.",["3D-Modelle"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Leider wird dieses Dateiformat nicht unterstützt."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Leider ist es mit Ihrem Browser nicht möglich, eine Vorschau für {1} anzuzeigen.",["360-Grad-Videos"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
      \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Klicken Sie, um die Seitennummer einzugeben",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Nächste Seite",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Vollbild anzeigen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Vollbild beenden",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Verkleinern",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Vergrößern",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Vorherige Seite",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Klicken Sie, um die Seitennummer einzugeben",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Nächste Seite",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Vollbild anzeigen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Vollbild beenden",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Drehung nach links",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Vollbild anzeigen",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Vollbild beenden",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Vollbild anzeigen",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Vollbild beenden",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
      ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Wiedergeben"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Stummschalten"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Vollbild anzeigen"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Einstellungen"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Medienregler",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Lautstärkeregler",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Vollbild beenden":"Vollbild anzeigen";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Wiedergeben")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Stummschaltung aufheben":"Stummschalten";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Leider ist es mit Ihrem Browser nicht möglich, eine Vorschau für {1} anzuzeigen.",["360-Grad-Videos"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
      \n
      Geschwindigkeit
      \n
      Normal
      \n
      '+p.s+'
      \n
      \n
      \n
      Qualität
      \n
      Autom.
      \n
      '+p.s+'
      \n
      \n
      \n
      '+p.t+'
      \n
      Geschwindigkeit
      \n
      \n
      \n
      '+p.l+'
      \n
      0.25
      \n
      \n
      \n
      '+p.l+'
      \n
      0.5
      \n
      \n
      \n
      '+p.l+'
      \n
      Normal
      \n
      \n
      \n
      '+p.l+'
      \n
      1.25
      \n
      \n
      \n
      '+p.l+'
      \n
      1.5
      \n
      \n
      \n
      '+p.l+'
      \n
      2.0
      \n
      \n
      \n
      '+p.t+'
      \n
      Qualität
      \n
      \n
      \n
      '+p.l+'
      \n
      480p
      \n
      \n
      \n
      '+p.l+'
      \n
      1080p
      \n
      \n
      \n
      '+p.l+'
      \n
      Autom.
      \n
      \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
      \n
      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",De="[object Function]",He="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Ze="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Ze]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[De]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Dt=se(ct,"Promise"),Ht=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Dt),zt=ve(Ht),Ft=ve(Mt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=D,j.prototype.get=H,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Dt&&Gt(Dt.resolve())!=Be||Ht&&Gt(new Ht)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
      \n
      \n \n \n
      \n \n \n \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n \n
      \n
      \n \n
      \n
      \n
      \n \n \n
      \n'},function(e,t){e.exports='
      \n
      \n
      \n \n
      \n
      \n \n
      \n
      \n
      \n \n  / \n \n \n \n
      \n
      \n'},function(e,t){e.exports='
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n {{accessibilityText}}\n
      \n
      \n
      \n
      \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/de-DE/src/lib/loadingIcon.gif b/dist/0.112.0/de-DE/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/en-AU/csv.js b/dist/0.112.0/en-AU/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/en-AU/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
      "],c=[3,"","
      "],d=[1,'',""],p={"*":[1,"?
      ","
      "],area:[1,"",""],col:[2,"","
      "],legend:[1,"
      ","
      "],param:[1,"",""],tr:[2,"","
      "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
      ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/en-AU/preview.js b/dist/0.112.0/en-AU/preview.js deleted file mode 100644 index 3882fca5c..000000000 --- a/dist/0.112.0/en-AU/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
      '+i+"
      ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
      \n
      \n
      '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
      ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
      \n

      \n
      \n \n
      \n
      \n
      \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
      \n
      \n
      \n \n
      \n \n \n
      \n
      \n
      \n
      \n
      \n \n
      \n \n \n
      \n
      \n
      \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Posting...":h.h(e.user.name)||"Some User";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
      '+r+'
      \n
      \n
      '+n+'
      \n
      '+o+'
      \n
      \n
      '+a+'
      \n \n
      \n
      \n Delete this annotation?\n
      \n
      \n \n \n
      \n
      ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
      \n \n
        \n
        \n \n
        ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Click anywhere to add a comment to the document"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="We're sorry, annotations failed to load for this file.";break;case"create":n="We're sorry, the annotation could not be created.",e.showAnnotations();break;case"delete":n="We're sorry, the annotation could not be deleted.",e.showAnnotations();break;case"authorization":n="Your session has expired. Please refresh the page."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Generating Preview...";e.querySelector(m.A).textContent="Download File"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Previous file",i.title="Next file",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
        \n
        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Ready to print.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="We're sorry, the preview didn't load. This document may be protected."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
        \n
        \n
        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Ready to print.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="This file has been truncated due to size limits. Please download to view the whole file.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Download File",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("We're sorry, the preview didn't load. Please refresh the page."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("We're sorry, you don't have permission to preview this file.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("We're sorry, the preview didn't load. Please refresh the page."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"We're sorry, the preview didn't load. This file type may not be supported.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
        \n
        \n \n \n \n
        \n
        \n
        \n \n
        \n \n \n
        \n
        \n
        \n
        \n
        \n \n
        \n \n \n
        \n
        \n
        \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} highlighted",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree images"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["3D models"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("We're sorry, this file format is not supported."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
        \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom out",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zoom in",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Previous page",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotate left",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
        ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Play"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Mute"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Enter fullscreen"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Settings"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Media Slider",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volume Slider",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Exit fullscreen":"Enter fullscreen";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Play")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Unmute":"Mute";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
        \n
        Speed
        \n
        Normal
        \n
        '+p.s+'
        \n
        \n
        \n
        Quality
        \n
        Auto
        \n
        '+p.s+'
        \n
        \n
        \n
        '+p.t+'
        \n
        Speed
        \n
        \n
        \n
        '+p.l+'
        \n
        0.25
        \n
        \n
        \n
        '+p.l+'
        \n
        0.5
        \n
        \n
        \n
        '+p.l+'
        \n
        Normal
        \n
        \n
        \n
        '+p.l+'
        \n
        1.25
        \n
        \n
        \n
        '+p.l+'
        \n
        1.5
        \n
        \n
        \n
        '+p.l+'
        \n
        2.0
        \n
        \n
        \n
        '+p.t+'
        \n
        Quality
        \n
        \n
        \n
        '+p.l+'
        \n
        480p
        \n
        \n
        \n
        '+p.l+'
        \n
        1080p
        \n
        \n
        \n
        '+p.l+'
        \n
        Auto
        \n
        \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
        \n
        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
        \n
        \n \n \n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n \n
        \n
        \n
        \n \n \n
        \n'},function(e,t){e.exports='
        \n
        \n
        \n \n
        \n
        \n \n
        \n
        \n
        \n \n  / \n \n \n \n
        \n
        \n'},function(e,t){e.exports='
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n {{accessibilityText}}\n
        \n
        \n
        \n
        \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/en-AU/src/lib/loadingIcon.gif b/dist/0.112.0/en-AU/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/en-CA/csv.js b/dist/0.112.0/en-CA/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/en-CA/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
        "],c=[3,"","
        "],d=[1,'',""],p={"*":[1,"?
        ","
        "],area:[1,"",""],col:[2,"","
        "],legend:[1,"
        ","
        "],param:[1,"",""],tr:[2,"","
        "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
        ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/en-CA/preview.js b/dist/0.112.0/en-CA/preview.js deleted file mode 100644 index 3882fca5c..000000000 --- a/dist/0.112.0/en-CA/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
        '+i+"
        ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
        \n
        \n
        '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
        ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
        \n

        \n
        \n \n
        \n
        \n
        \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
        \n
        \n
        \n \n
        \n \n \n
        \n
        \n
        \n
        \n
        \n \n
        \n \n \n
        \n
        \n
        \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Posting...":h.h(e.user.name)||"Some User";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
        '+r+'
        \n
        \n
        '+n+'
        \n
        '+o+'
        \n
        \n
        '+a+'
        \n \n
        \n
        \n Delete this annotation?\n
        \n
        \n \n \n
        \n
        ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
        \n \n
          \n
          \n \n
          ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Click anywhere to add a comment to the document"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="We're sorry, annotations failed to load for this file.";break;case"create":n="We're sorry, the annotation could not be created.",e.showAnnotations();break;case"delete":n="We're sorry, the annotation could not be deleted.",e.showAnnotations();break;case"authorization":n="Your session has expired. Please refresh the page."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Generating Preview...";e.querySelector(m.A).textContent="Download File"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Previous file",i.title="Next file",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
          \n
          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Ready to print.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="We're sorry, the preview didn't load. This document may be protected."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
          \n
          \n
          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Ready to print.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="This file has been truncated due to size limits. Please download to view the whole file.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Download File",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("We're sorry, the preview didn't load. Please refresh the page."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("We're sorry, you don't have permission to preview this file.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("We're sorry, the preview didn't load. Please refresh the page."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"We're sorry, the preview didn't load. This file type may not be supported.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
          \n
          \n \n \n \n
          \n
          \n
          \n \n
          \n \n \n
          \n
          \n
          \n
          \n
          \n \n
          \n \n \n
          \n
          \n
          \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} highlighted",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree images"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["3D models"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("We're sorry, this file format is not supported."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
          \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom out",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zoom in",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Previous page",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotate left",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
          ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Play"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Mute"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Enter fullscreen"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Settings"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Media Slider",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volume Slider",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Exit fullscreen":"Enter fullscreen";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Play")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Unmute":"Mute";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
          \n
          Speed
          \n
          Normal
          \n
          '+p.s+'
          \n
          \n
          \n
          Quality
          \n
          Auto
          \n
          '+p.s+'
          \n
          \n
          \n
          '+p.t+'
          \n
          Speed
          \n
          \n
          \n
          '+p.l+'
          \n
          0.25
          \n
          \n
          \n
          '+p.l+'
          \n
          0.5
          \n
          \n
          \n
          '+p.l+'
          \n
          Normal
          \n
          \n
          \n
          '+p.l+'
          \n
          1.25
          \n
          \n
          \n
          '+p.l+'
          \n
          1.5
          \n
          \n
          \n
          '+p.l+'
          \n
          2.0
          \n
          \n
          \n
          '+p.t+'
          \n
          Quality
          \n
          \n
          \n
          '+p.l+'
          \n
          480p
          \n
          \n
          \n
          '+p.l+'
          \n
          1080p
          \n
          \n
          \n
          '+p.l+'
          \n
          Auto
          \n
          \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
          \n
          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
          \n
          \n \n \n
          \n \n \n \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n \n
          \n
          \n \n
          \n
          \n
          \n \n \n
          \n'},function(e,t){e.exports='
          \n
          \n
          \n \n
          \n
          \n \n
          \n
          \n
          \n \n  / \n \n \n \n
          \n
          \n'},function(e,t){e.exports='
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n {{accessibilityText}}\n
          \n
          \n
          \n
          \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/en-CA/src/lib/loadingIcon.gif b/dist/0.112.0/en-CA/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/en-GB/csv.js b/dist/0.112.0/en-GB/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/en-GB/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
          "],c=[3,"","
          "],d=[1,'',""],p={"*":[1,"?
          ","
          "],area:[1,"",""],col:[2,"","
          "],legend:[1,"
          ","
          "],param:[1,"",""],tr:[2,"","
          "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
          ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/en-GB/preview.js b/dist/0.112.0/en-GB/preview.js deleted file mode 100644 index 3882fca5c..000000000 --- a/dist/0.112.0/en-GB/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
          '+i+"
          ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
          \n
          \n
          '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
          ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
          \n

          \n
          \n \n
          \n
          \n
          \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
          \n
          \n
          \n \n
          \n \n \n
          \n
          \n
          \n
          \n
          \n \n
          \n \n \n
          \n
          \n
          \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Posting...":h.h(e.user.name)||"Some User";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
          '+r+'
          \n
          \n
          '+n+'
          \n
          '+o+'
          \n
          \n
          '+a+'
          \n \n
          \n
          \n Delete this annotation?\n
          \n
          \n \n \n
          \n
          ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
          \n \n
            \n
            \n \n
            ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Click anywhere to add a comment to the document"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="We're sorry, annotations failed to load for this file.";break;case"create":n="We're sorry, the annotation could not be created.",e.showAnnotations();break;case"delete":n="We're sorry, the annotation could not be deleted.",e.showAnnotations();break;case"authorization":n="Your session has expired. Please refresh the page."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Generating Preview...";e.querySelector(m.A).textContent="Download File"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Previous file",i.title="Next file",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
            \n
            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Ready to print.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="We're sorry, the preview didn't load. This document may be protected."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
            \n
            \n
            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Ready to print.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="This file has been truncated due to size limits. Please download to view the whole file.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Download File",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("We're sorry, the preview didn't load. Please refresh the page."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("We're sorry, you don't have permission to preview this file.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("We're sorry, the preview didn't load. Please refresh the page."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"We're sorry, the preview didn't load. This file type may not be supported.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
            \n
            \n \n \n \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n
            \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} highlighted",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree images"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["3D models"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("We're sorry, this file format is not supported."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
            \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom out",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zoom in",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Previous page",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotate left",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
            ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Play"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Mute"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Enter fullscreen"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Settings"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Media Slider",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volume Slider",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Exit fullscreen":"Enter fullscreen";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Play")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Unmute":"Mute";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
            \n
            Speed
            \n
            Normal
            \n
            '+p.s+'
            \n
            \n
            \n
            Quality
            \n
            Auto
            \n
            '+p.s+'
            \n
            \n
            \n
            '+p.t+'
            \n
            Speed
            \n
            \n
            \n
            '+p.l+'
            \n
            0.25
            \n
            \n
            \n
            '+p.l+'
            \n
            0.5
            \n
            \n
            \n
            '+p.l+'
            \n
            Normal
            \n
            \n
            \n
            '+p.l+'
            \n
            1.25
            \n
            \n
            \n
            '+p.l+'
            \n
            1.5
            \n
            \n
            \n
            '+p.l+'
            \n
            2.0
            \n
            \n
            \n
            '+p.t+'
            \n
            Quality
            \n
            \n
            \n
            '+p.l+'
            \n
            480p
            \n
            \n
            \n
            '+p.l+'
            \n
            1080p
            \n
            \n
            \n
            '+p.l+'
            \n
            Auto
            \n
            \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
            \n
            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
            \n
            \n \n \n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n \n \n
            \n'},function(e,t){e.exports='
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n \n  / \n \n \n \n
            \n
            \n'},function(e,t){e.exports='
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n {{accessibilityText}}\n
            \n
            \n
            \n
            \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/en-GB/src/lib/loadingIcon.gif b/dist/0.112.0/en-GB/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/en-US/csv.js b/dist/0.112.0/en-US/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/en-US/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
            "],c=[3,"","
            "],d=[1,'',""],p={"*":[1,"?
            ","
            "],area:[1,"",""],col:[2,"","
            "],legend:[1,"
            ","
            "],param:[1,"",""],tr:[2,"","
            "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
            ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/en-US/preview.js b/dist/0.112.0/en-US/preview.js deleted file mode 100644 index 3882fca5c..000000000 --- a/dist/0.112.0/en-US/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
            '+i+"
            ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
            \n
            \n
            '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
            ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
            \n

            \n
            \n \n
            \n
            \n
            \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n
            \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Posting...":h.h(e.user.name)||"Some User";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
            '+r+'
            \n
            \n
            '+n+'
            \n
            '+o+'
            \n
            \n
            '+a+'
            \n \n
            \n
            \n Delete this annotation?\n
            \n
            \n \n \n
            \n
            ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
            \n \n
              \n
              \n \n
              ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Click anywhere to add a comment to the document"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="We're sorry, annotations failed to load for this file.";break;case"create":n="We're sorry, the annotation could not be created.",e.showAnnotations();break;case"delete":n="We're sorry, the annotation could not be deleted.",e.showAnnotations();break;case"authorization":n="Your session has expired. Please refresh the page."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Generating Preview...";e.querySelector(m.A).textContent="Download File"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Previous file",i.title="Next file",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
              \n
              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Ready to print.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="We're sorry, the preview didn't load. This document may be protected."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparing to print...","Print",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
              \n
              \n
              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Ready to print.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="This file has been truncated due to size limits. Please download to view the whole file.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Download File",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("We're sorry, the preview didn't load. Please refresh the page."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("We're sorry, you don't have permission to preview this file.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("We're sorry, the preview didn't load. Please refresh the page."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"We're sorry, the preview didn't load. This file type may not be supported.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Okay",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
              \n
              \n \n \n \n
              \n
              \n
              \n \n
              \n \n \n
              \n
              \n
              \n
              \n
              \n \n
              \n \n \n
              \n
              \n
              \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} highlighted",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree images"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["3D models"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("We're sorry, this file format is not supported."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
              \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom out",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zoom in",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Previous page",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Click to enter page number",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Next page",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotate left",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Enter fullscreen",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Exit fullscreen",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
              ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Play"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Mute"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Enter fullscreen"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Settings"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Media Slider",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volume Slider",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Exit fullscreen":"Enter fullscreen";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Play")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Unmute":"Mute";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("We're sorry, your browser doesn't support preview for {1}.",["360-degree videos"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
              \n
              Speed
              \n
              Normal
              \n
              '+p.s+'
              \n
              \n
              \n
              Quality
              \n
              Auto
              \n
              '+p.s+'
              \n
              \n
              \n
              '+p.t+'
              \n
              Speed
              \n
              \n
              \n
              '+p.l+'
              \n
              0.25
              \n
              \n
              \n
              '+p.l+'
              \n
              0.5
              \n
              \n
              \n
              '+p.l+'
              \n
              Normal
              \n
              \n
              \n
              '+p.l+'
              \n
              1.25
              \n
              \n
              \n
              '+p.l+'
              \n
              1.5
              \n
              \n
              \n
              '+p.l+'
              \n
              2.0
              \n
              \n
              \n
              '+p.t+'
              \n
              Quality
              \n
              \n
              \n
              '+p.l+'
              \n
              480p
              \n
              \n
              \n
              '+p.l+'
              \n
              1080p
              \n
              \n
              \n
              '+p.l+'
              \n
              Auto
              \n
              \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
              \n
              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
              \n
              \n \n \n
              \n \n \n \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n \n
              \n
              \n \n
              \n
              \n
              \n \n \n
              \n'},function(e,t){e.exports='
              \n
              \n
              \n \n
              \n
              \n \n
              \n
              \n
              \n \n  / \n \n \n \n
              \n
              \n'},function(e,t){e.exports='
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n {{accessibilityText}}\n
              \n
              \n
              \n
              \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/en-US/src/lib/loadingIcon.gif b/dist/0.112.0/en-US/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/es-ES/csv.js b/dist/0.112.0/es-ES/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/es-ES/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
              "],c=[3,"","
              "],d=[1,'',""],p={"*":[1,"?
              ","
              "],area:[1,"",""],col:[2,"","
              "],legend:[1,"
              ","
              "],param:[1,"",""],tr:[2,"","
              "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
              ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/es-ES/preview.js b/dist/0.112.0/es-ES/preview.js deleted file mode 100644 index 59e2cbd87..000000000 --- a/dist/0.112.0/es-ES/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),j&&(e[L]=j),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),j&&(o=o+"&"+T+"="+encodeURI(j)),H&&(o=o+"&"+A+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",A="box_client_version",j="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),A=n.n(T),j=n(358),H=n.n(j),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return Ae}),n.d(t,"C",function(){return je}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=A.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,Ae=Y.a,je=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
              '+i+"
              ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
              \n
              \n
              '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){j.initialized=!0,j.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,j.config.alertOnFail)}function c(e){s("Rangy warning: "+e,j.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!j.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");j.initialized=!0,j.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,j);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&A.isHostMethod(e,"setTimeout")&&A.isHostObject(e,"document")}function b(e,t,n){var i;if(e?A.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=j(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",A=e.util,j=A.getBody;A.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),A.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");A.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!A.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),A.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");A.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!A.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!A.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
              ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:j,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),j.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,j),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),j.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new j("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=O,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!j.initialized&&j.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),j})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
              \n

              \n
              \n \n
              \n
              \n
              \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Aceptar",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
              \n
              \n
              \n \n
              \n \n \n
              \n
              \n
              \n
              \n
              \n \n
              \n \n \n
              \n
              \n
              \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Publicando...":h.h(e.user.name)||"Algún usuario";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
              '+r+'
              \n
              \n
              '+n+'
              \n
              '+o+'
              \n
              \n
              '+a+'
              \n \n
              \n
              \n ¿Desea eliminar esta anotación?\n
              \n
              \n \n \n
              \n
              ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
              \n \n
                \n
                \n \n
                ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Haga clic en cualquier parte para añadir un comentario al documento"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Lo sentimos, no se han podido cargar las anotaciones para este archivo.";break;case"create":n="Lo sentimos, no se ha podido crear la anotación.",e.showAnnotations();break;case"delete":n="Lo sentimos, no se ha podido eliminar la anotación.",e.showAnnotations();break;case"authorization":n="La sesión ha finalizado. Actualice la página."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Generando vista previa...";e.querySelector(g.A).textContent="Descargar archivo"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Archivo anterior",i.title="Archivo siguiente",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                \n
                ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparando para imprimir...","Imprimir",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Listo para la impresión.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(A,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(j,n),t-=1}while(t>0&&n>j);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>j,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Lo sentimos, la previsualización no se ha cargado. Es posible que este documento esté protegido."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparando para imprimir...","Imprimir",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                \n
                \n
                ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Listo para la impresión.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Este archivo se ha truncado debido a los límites de tamaño. Descargue para ver el archivo completo.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Descargar archivo",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Lo sentimos, la previsualización no se ha cargado. Actualice la página."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("Lo sentimos, no dispone de permiso para previsualizar este archivo.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>j)return void this.triggerError(new Error("Lo sentimos, la previsualización no se ha cargado. Actualice la página."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},A*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Lo sentimos, la previsualización no se ha cargado. Es posible que este tipo de archivo no sea compatible.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Aceptar",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                \n
                \n \n \n \n
                \n
                \n
                \n \n
                \n \n \n
                \n
                \n
                \n
                \n
                \n \n
                \n \n \n
                \n
                \n
                \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} resaltado",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Lo sentimos, su navegador no es compatible con la previsualización de {1}.",["Imágenes de 360 grados"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Lo sentimos, su navegador no es compatible con la previsualización de {1}.",["Modelos 3D"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Lo sentimos, este formato de archivo no es compatible."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Lo sentimos, su navegador no es compatible con la previsualización de {1}.",["Vídeos de 360 grados"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Haga clic para introducir el número de página",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Página siguiente",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Acceder a pantalla completa",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Salir de pantalla completa",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Alejar",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Acercar",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Página anterior",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Haga clic para introducir el número de página",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Página siguiente",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Acceder a pantalla completa",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Salir de pantalla completa",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotar a la izquierda",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Acceder a pantalla completa",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Salir de pantalla completa",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Acceder a pantalla completa",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Salir de pantalla completa",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Reproducir"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Silenciar"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Acceder a pantalla completa"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Configuración"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Control deslizante multimedia",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Control deslizante de volumen",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Salir de pantalla completa":"Acceder a pantalla completa";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pausar")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Reproducir")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Activar sonido":"Silenciar";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Lo sentimos, su navegador no es compatible con la previsualización de {1}.",["Vídeos de 360 grados"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                \n
                Velocidad
                \n
                Normal
                \n
                '+p.s+'
                \n
                \n
                \n
                Calidad
                \n
                Automático
                \n
                '+p.s+'
                \n
                \n
                \n
                '+p.t+'
                \n
                Velocidad
                \n
                \n
                \n
                '+p.l+'
                \n
                0.25
                \n
                \n
                \n
                '+p.l+'
                \n
                0.5
                \n
                \n
                \n
                '+p.l+'
                \n
                Normal
                \n
                \n
                \n
                '+p.l+'
                \n
                1.25
                \n
                \n
                \n
                '+p.l+'
                \n
                1.5
                \n
                \n
                \n
                '+p.l+'
                \n
                2.0
                \n
                \n
                \n
                '+p.t+'
                \n
                Calidad
                \n
                \n
                \n
                '+p.l+'
                \n
                480p
                \n
                \n
                \n
                '+p.l+'
                \n
                1080p
                \n
                \n
                \n
                '+p.l+'
                \n
                Automático
                \n
                \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                \n
                ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",Ae="[object Boolean]",je="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[Ae]=at[je]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),At=se(ct,"DataView"),jt=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(At),Bt=ve(jt),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,A.prototype.clear=j,A.prototype.delete=H,A.prototype.get=D,A.prototype.has=M,A.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(At&&Gt(new At(new ArrayBuffer(1)))!=Ge||jt&&Gt(new jt)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                \n
                \n \n \n
                \n \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n \n
                \n
                \n \n
                \n
                \n
                \n \n \n
                \n'},function(e,t){e.exports='
                \n
                \n
                \n \n
                \n
                \n \n
                \n
                \n
                \n \n  / \n \n \n \n
                \n
                \n'},function(e,t){e.exports='
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n {{accessibilityText}}\n
                \n
                \n
                \n
                \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/es-ES/src/lib/loadingIcon.gif b/dist/0.112.0/es-ES/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/fi-FI/csv.js b/dist/0.112.0/fi-FI/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/fi-FI/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                "],c=[3,"","
                "],d=[1,'',""],p={"*":[1,"?
                ","
                "],area:[1,"",""],col:[2,"","
                "],legend:[1,"
                ","
                "],param:[1,"",""],tr:[2,"","
                "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/fi-FI/preview.js b/dist/0.112.0/fi-FI/preview.js deleted file mode 100644 index 224e589b3..000000000 --- a/dist/0.112.0/fi-FI/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(M)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=D;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=M}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",M=function(e){return 204===e.status?e:e.json()},D=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),M=n(353),D=n.n(M),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return Me}),n.d(t,"A",function(){return De}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=D.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,Me=re.a,De=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                '+i+"
                ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                \n
                \n
                '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=D.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var M=document.createTextNode("test");j.areHostMethods(M,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(M,["data"]))||t.fail("Incomplete Text Node implementation");var D=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:D,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?M.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=M.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+M.inspectNode(e.startContainer)+":"+e.startOffset+", "+M.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(M.isBrokenNode(e.startContainer)||M.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,D.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=M.parentElement(t)),i=null===i||"HTML"==i.nodeName&&M.isHtmlNamespace(F(i).documentElement)&&M.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,M.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,M.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;D.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||M.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),D.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==D?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==D)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=k,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),M(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                \n

                \n
                \n \n
                \n
                \n
                \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                \n
                \n
                \n \n
                \n \n \n
                \n
                \n
                \n
                \n
                \n \n
                \n \n \n
                \n
                \n
                \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Julkaistaan...":h.h(e.user.name)||"Jokin käyttäjä";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                '+r+'
                \n
                \n
                '+n+'
                \n
                '+o+'
                \n
                \n
                '+a+'
                \n \n
                \n
                \n Poistetaanko tämä merkintä?\n
                \n
                \n \n \n
                \n
                ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                \n \n
                  \n
                  \n \n
                  ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Lisää kommentti asiakirjaan napsauttamalla mitä tahansa kohtaa"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Tämän tiedoston huomautuksia ei voitu ladata.";break;case"create":n="Tämän tiedoston huomautuksia ei voitu luoda.",e.showAnnotations();break;case"delete":n="Tämän tiedoston huomautuksia ei voitu poistaa.",e.showAnnotations();break;case"authorization":n="Istunto on vanhentunut. Päivitä sivu."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Luodaan esikatselu...";e.querySelector(g.A).textContent="Lataa tiedosto"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Edellinen tiedosto",i.title="Seuraava tiedosto",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                  \n
                  ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Valmistellaan tulostusta...","Tulosta",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Valmis tulostamaan.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?M:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Esikatselua ei voitu ladata. Tämä asiakirja on ehkä suojattu."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(D),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(D),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Valmistellaan tulostusta...","Tulosta",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                  \n
                  \n
                  ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Valmis tulostamaan.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Tätä tiedostoa on pienennetty kokorajoituksen vuoksi. Lataa koko tiedosto.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Lataa tiedosto",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Esikatselua ei voitu ladata. Päivitä sivu."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Sinulla ei ole riittäviä oikeuksia esikatsella tätä tiedostoa.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>D)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},M*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Esikatselua ei voitu ladata. Päivitä sivu."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Esikatselua ei voitu ladata. Tätä tiedostotyyppiä ei ehkä tueta.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                  \n
                  \n \n \n \n
                  \n
                  \n
                  \n \n
                  \n \n \n
                  \n
                  \n
                  \n
                  \n
                  \n \n
                  \n \n \n
                  \n
                  \n
                  \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} korostettu",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Selaimesi ei tue tiedostotyypin {1} esikatselua.",["360 asteen kuvat"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Selaimesi ei tue tiedostotyypin {1} esikatselua.",["3D-mallit"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Tätä tiedostomuotoa ei tueta."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Selaimesi ei tue tiedostotyypin {1} esikatselua.",["360 asteen videot"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                  \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Lisää sivunumero napsauttamalla",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Uusi sivu",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Siirry koko näytön tilaan",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Poistu koko näytön tilasta",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Loitonna",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Lähennä",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Edellinen sivu",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Lisää sivunumero napsauttamalla",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Uusi sivu",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Siirry koko näytön tilaan",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Poistu koko näytön tilasta",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Kierrä vasemmalle",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Siirry koko näytön tilaan",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Poistu koko näytön tilasta",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Siirry koko näytön tilaan",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Poistu koko näytön tilasta",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                  ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Toista"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Mykistä"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Siirry koko näytön tilaan"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Asetukset"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Median liukusäädin",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Äänenvoimakkuuden liukusäädin",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Poistu koko näytön tilasta":"Siirry koko näytön tilaan";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Tauko")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Toista")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Poista mykistys":"Mykistä";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Selaimesi ei tue tiedostotyypin {1} esikatselua.",["360 asteen videot"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                  \n
                  Nopeus
                  \n
                  Normaali
                  \n
                  '+p.s+'
                  \n
                  \n
                  \n
                  Laatu
                  \n
                  Automaattinen
                  \n
                  '+p.s+'
                  \n
                  \n
                  \n
                  '+p.t+'
                  \n
                  Nopeus
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  0.25
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  0.5
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  Normaali
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  1.25
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  1.5
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  2.0
                  \n
                  \n
                  \n
                  '+p.t+'
                  \n
                  Laatu
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  480p
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  1080p
                  \n
                  \n
                  \n
                  '+p.l+'
                  \n
                  Automaattinen
                  \n
                  \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                  \n
                  ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",Me="[object GeneratorFunction]",De="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[De]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Mt=se(ct,"Set"),Dt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Mt),Ft=ve(Dt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=M,j.prototype.has=D,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=De||Ht&&Gt(Ht.resolve())!=Be||Mt&&Gt(new Mt)!=ze||Dt&&Gt(new Dt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return De;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                  \n
                  \n \n \n
                  \n \n \n \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n \n
                  \n
                  \n \n
                  \n
                  \n
                  \n \n \n
                  \n'},function(e,t){e.exports='
                  \n
                  \n
                  \n \n
                  \n
                  \n \n
                  \n
                  \n
                  \n \n  / \n \n \n \n
                  \n
                  \n'},function(e,t){e.exports='
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n {{accessibilityText}}\n
                  \n
                  \n
                  \n
                  \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/fi-FI/src/lib/loadingIcon.gif b/dist/0.112.0/fi-FI/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/fr-CA/csv.js b/dist/0.112.0/fr-CA/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/fr-CA/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                  "],c=[3,"","
                  "],d=[1,'',""],p={"*":[1,"?
                  ","
                  "],area:[1,"",""],col:[2,"","
                  "],legend:[1,"
                  ","
                  "],param:[1,"",""],tr:[2,"","
                  "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                  ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/fr-CA/preview.js b/dist/0.112.0/fr-CA/preview.js deleted file mode 100644 index 2976bf0cb..000000000 --- a/dist/0.112.0/fr-CA/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(M)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=D;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=M}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",M=function(e){return 204===e.status?e:e.json()},D=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),M=n(353),D=n.n(M),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return Me}),n.d(t,"A",function(){return De}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=D.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,Me=re.a,De=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                  '+i+"
                  ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                  \n
                  \n
                  '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=D.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var M=document.createTextNode("test");j.areHostMethods(M,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(M,["data"]))||t.fail("Incomplete Text Node implementation");var D=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                  ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:D,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?M.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=M.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+M.inspectNode(e.startContainer)+":"+e.startOffset+", "+M.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(M.isBrokenNode(e.startContainer)||M.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,D.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=M.parentElement(t)),i=null===i||"HTML"==i.nodeName&&M.isHtmlNamespace(F(i).documentElement)&&M.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,M.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,M.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;D.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||M.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),D.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==D?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==D)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=O,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),M(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                  \n

                  \n
                  \n \n
                  \n
                  \n
                  \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                  \n
                  \n
                  \n \n
                  \n \n \n
                  \n
                  \n
                  \n
                  \n
                  \n \n
                  \n \n \n
                  \n
                  \n
                  \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Envoi en cours...":h.h(e.user.name)||"Un utilisateur";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                  '+r+'
                  \n
                  \n
                  '+n+'
                  \n
                  '+o+'
                  \n
                  \n
                  '+a+'
                  \n \n
                  \n
                  \n Supprimer cette annotation ?\n
                  \n
                  \n \n \n
                  \n
                  ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                  \n \n
                    \n
                    \n \n
                    ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Cliquez n'importe où dans le document pour y ajouter un commentaire"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Nous sommes désolés, les annotations n'ont pas pu être chargées pour ce fichier.";break;case"create":n="Nous sommes désolés, l'annotation n'a pas pu être créée.",e.showAnnotations();break;case"delete":n="Nous sommes désolés, l'annotation n'a pas pu être supprimée.",e.showAnnotations();break;case"authorization":n="Votre session a expiré. Veuillez actualiser la page."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Génération de l'aperçu...";e.querySelector(g.A).textContent="Télécharger le fichier"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Fichier précédent",i.title="Fichier suivant",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                    \n
                    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Préparation à l'impression...","Imprimer",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Prêt à imprimer.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?M:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Ce document est peut-être protégé."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(D),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(D),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Préparation à l'impression...","Imprimer",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                    \n
                    \n
                    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Prêt à imprimer.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Ce fichier a été tronqué en raison de limites de taille. Veuillez télécharger le fichier pour l'afficher en entier.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Télécharger le fichier",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Veuillez actualiser la page."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("Nous sommes désolés, vous n'avez pas l'autorisation de prévisualiser ce fichier.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>D)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},M*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Veuillez actualiser la page."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Ce type de fichier n'est peut-être pas pris en charge.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                    \n
                    \n \n \n \n
                    \n
                    \n
                    \n \n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n \n
                    \n \n \n
                    \n
                    \n
                    \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} en surbrillance",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les images à 360 degrés"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les modèles 3D"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Nous sommes désolés, ce format de fichier n'est pas pris en charge."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les vidéos à 360 degrés"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                    \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Cliquer pour saisir le numéro de la page",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Page suivante",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom arrière",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Zoom avant",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Page précédente",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Cliquer pour saisir le numéro de la page",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Page suivante",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotation vers la gauche",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                    ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Lecture"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Silencieux"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Passer en mode plein écran"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Paramètres"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Curseur de média",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Curseur de volume",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Quitter le mode plein écran":"Passer en mode plein écran";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Lecture")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Activer le son":"Silencieux";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les vidéos à 360 degrés"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                    \n
                    Vitesse
                    \n
                    Normale
                    \n
                    '+p.s+'
                    \n
                    \n
                    \n
                    Qualité
                    \n
                    Auto
                    \n
                    '+p.s+'
                    \n
                    \n
                    \n
                    '+p.t+'
                    \n
                    Vitesse
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    0.25
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    0.5
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    Normale
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    1.25
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    1.5
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    2.0
                    \n
                    \n
                    \n
                    '+p.t+'
                    \n
                    Qualité
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    480p
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    1080p
                    \n
                    \n
                    \n
                    '+p.l+'
                    \n
                    Auto
                    \n
                    \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                    \n
                    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",Me="[object GeneratorFunction]",De="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[De]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Mt=se(ct,"Set"),Dt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Mt),Ft=ve(Dt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=M,j.prototype.has=D,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=De||Ht&&Gt(Ht.resolve())!=Be||Mt&&Gt(new Mt)!=ze||Dt&&Gt(new Dt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return De;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                    \n
                    \n \n \n
                    \n \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n \n
                    \n
                    \n
                    \n \n \n
                    \n'},function(e,t){e.exports='
                    \n
                    \n
                    \n \n
                    \n
                    \n \n
                    \n
                    \n
                    \n \n  / \n \n \n \n
                    \n
                    \n'},function(e,t){e.exports='
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n {{accessibilityText}}\n
                    \n
                    \n
                    \n
                    \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/fr-CA/src/lib/loadingIcon.gif b/dist/0.112.0/fr-CA/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/fr-FR/csv.js b/dist/0.112.0/fr-FR/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/fr-FR/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                    "],c=[3,"","
                    "],d=[1,'',""],p={"*":[1,"?
                    ","
                    "],area:[1,"",""],col:[2,"","
                    "],legend:[1,"
                    ","
                    "],param:[1,"",""],tr:[2,"","
                    "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                    ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/fr-FR/preview.js b/dist/0.112.0/fr-FR/preview.js deleted file mode 100644 index 2976bf0cb..000000000 --- a/dist/0.112.0/fr-FR/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(M)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=D;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=M}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",M=function(e){return 204===e.status?e:e.json()},D=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),M=n(353),D=n.n(M),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return Me}),n.d(t,"A",function(){return De}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=D.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,Me=re.a,De=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                    '+i+"
                    ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                    \n
                    \n
                    '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=D.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var M=document.createTextNode("test");j.areHostMethods(M,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(M,["data"]))||t.fail("Incomplete Text Node implementation");var D=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                    ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:D,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?M.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=M.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+M.inspectNode(e.startContainer)+":"+e.startOffset+", "+M.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(M.isBrokenNode(e.startContainer)||M.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,D.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=M.parentElement(t)),i=null===i||"HTML"==i.nodeName&&M.isHtmlNamespace(F(i).documentElement)&&M.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,M.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,M.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;D.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||M.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),D.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==D?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==D)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=O,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),M(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                    \n

                    \n
                    \n \n
                    \n
                    \n
                    \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                    \n
                    \n
                    \n \n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n \n
                    \n \n \n
                    \n
                    \n
                    \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Envoi en cours...":h.h(e.user.name)||"Un utilisateur";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                    '+r+'
                    \n
                    \n
                    '+n+'
                    \n
                    '+o+'
                    \n
                    \n
                    '+a+'
                    \n \n
                    \n
                    \n Supprimer cette annotation ?\n
                    \n
                    \n \n \n
                    \n
                    ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                    \n \n
                      \n
                      \n \n
                      ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Cliquez n'importe où dans le document pour y ajouter un commentaire"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Nous sommes désolés, les annotations n'ont pas pu être chargées pour ce fichier.";break;case"create":n="Nous sommes désolés, l'annotation n'a pas pu être créée.",e.showAnnotations();break;case"delete":n="Nous sommes désolés, l'annotation n'a pas pu être supprimée.",e.showAnnotations();break;case"authorization":n="Votre session a expiré. Veuillez actualiser la page."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Génération de l'aperçu...";e.querySelector(g.A).textContent="Télécharger le fichier"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Fichier précédent",i.title="Fichier suivant",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                      \n
                      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Préparation à l'impression...","Imprimer",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Prêt à imprimer.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?M:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Ce document est peut-être protégé."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(D),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(D),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Préparation à l'impression...","Imprimer",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                      \n
                      \n
                      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Prêt à imprimer.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Ce fichier a été tronqué en raison de limites de taille. Veuillez télécharger le fichier pour l'afficher en entier.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Télécharger le fichier",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Veuillez actualiser la page."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("Nous sommes désolés, vous n'avez pas l'autorisation de prévisualiser ce fichier.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>D)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},M*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Veuillez actualiser la page."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Ce type de fichier n'est peut-être pas pris en charge.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                      \n
                      \n \n \n \n
                      \n
                      \n
                      \n \n
                      \n \n \n
                      \n
                      \n
                      \n
                      \n
                      \n \n
                      \n \n \n
                      \n
                      \n
                      \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} en surbrillance",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les images à 360 degrés"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les modèles 3D"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Nous sommes désolés, ce format de fichier n'est pas pris en charge."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les vidéos à 360 degrés"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                      \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Cliquer pour saisir le numéro de la page",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Page suivante",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom arrière",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Zoom avant",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Page précédente",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Cliquer pour saisir le numéro de la page",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Page suivante",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotation vers la gauche",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Passer en mode plein écran",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Quitter le mode plein écran",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                      ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Lecture"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Silencieux"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Passer en mode plein écran"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Paramètres"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Curseur de média",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Curseur de volume",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Quitter le mode plein écran":"Passer en mode plein écran";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Lecture")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Activer le son":"Silencieux";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}.",["les vidéos à 360 degrés"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                      \n
                      Vitesse
                      \n
                      Normale
                      \n
                      '+p.s+'
                      \n
                      \n
                      \n
                      Qualité
                      \n
                      Auto
                      \n
                      '+p.s+'
                      \n
                      \n
                      \n
                      '+p.t+'
                      \n
                      Vitesse
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      0.25
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      0.5
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      Normale
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      1.25
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      1.5
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      2.0
                      \n
                      \n
                      \n
                      '+p.t+'
                      \n
                      Qualité
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      480p
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      1080p
                      \n
                      \n
                      \n
                      '+p.l+'
                      \n
                      Auto
                      \n
                      \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                      \n
                      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",Me="[object GeneratorFunction]",De="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[De]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Mt=se(ct,"Set"),Dt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Mt),Ft=ve(Dt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=M,j.prototype.has=D,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=De||Ht&&Gt(Ht.resolve())!=Be||Mt&&Gt(new Mt)!=ze||Dt&&Gt(new Dt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return De;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                      \n
                      \n \n \n
                      \n \n \n \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n \n
                      \n
                      \n \n
                      \n
                      \n
                      \n \n \n
                      \n'},function(e,t){e.exports='
                      \n
                      \n
                      \n \n
                      \n
                      \n \n
                      \n
                      \n
                      \n \n  / \n \n \n \n
                      \n
                      \n'},function(e,t){e.exports='
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n {{accessibilityText}}\n
                      \n
                      \n
                      \n
                      \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/fr-FR/src/lib/loadingIcon.gif b/dist/0.112.0/fr-FR/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/it-IT/csv.js b/dist/0.112.0/it-IT/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/it-IT/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                      "],c=[3,"","
                      "],d=[1,'',""],p={"*":[1,"?
                      ","
                      "],area:[1,"",""],col:[2,"","
                      "],legend:[1,"
                      ","
                      "],param:[1,"",""],tr:[2,"","
                      "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                      ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/it-IT/preview.js b/dist/0.112.0/it-IT/preview.js deleted file mode 100644 index 20a13fe83..000000000 --- a/dist/0.112.0/it-IT/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),j&&(e[L]=j),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),j&&(o=o+"&"+T+"="+encodeURI(j)),H&&(o=o+"&"+A+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",A="box_client_version",j="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),A=n.n(T),j=n(358),H=n.n(j),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return Ae}),n.d(t,"C",function(){return je}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=A.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,Ae=Y.a,je=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                      '+i+"
                      ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                      \n
                      \n
                      '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){j.initialized=!0,j.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,j.config.alertOnFail)}function c(e){s("Rangy warning: "+e,j.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!j.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");j.initialized=!0,j.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,j);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&A.isHostMethod(e,"setTimeout")&&A.isHostObject(e,"document")}function b(e,t,n){var i;if(e?A.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=j(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",A=e.util,j=A.getBody;A.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),A.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");A.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!A.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),A.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");A.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!A.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!A.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                      ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:j,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),j.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,j),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),j.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new j("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=O,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!j.initialized&&j.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),j})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                      \n

                      \n
                      \n \n
                      \n
                      \n
                      \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                      \n
                      \n
                      \n \n
                      \n \n \n
                      \n
                      \n
                      \n
                      \n
                      \n \n
                      \n \n \n
                      \n
                      \n
                      \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Pubblicazione in corso...":h.h(e.user.name)||"Un utente";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                      '+r+'
                      \n
                      \n
                      '+n+'
                      \n
                      '+o+'
                      \n
                      \n
                      '+a+'
                      \n \n
                      \n
                      \n Eliminare questa nota?\n
                      \n
                      \n \n \n
                      \n
                      ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                      \n \n
                        \n
                        \n \n
                        ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Fai clic in un punto qualsiasi per aggiungere un commento al documento"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Caricamento delle note per questo file non riuscito.";break;case"create":n="Impossibile creare la nota.",e.showAnnotations();break;case"delete":n="Impossibile eliminare la nota.",e.showAnnotations();break;case"authorization":n="La sessione è scaduta. Aggiorna la pagina."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Creazione anteprima in corso...";e.querySelector(g.A).textContent="Scarica file"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="File precedente",i.title="File successivo",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                        \n
                        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparazione alla stampa in corso...","Stampa",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Stampa pronta per l'avvio.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(A,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(j,n),t-=1}while(t>0&&n>j);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>j,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Caricamento dell'anteprima non riuscito. Il documento potrebbe essere protetto."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparazione alla stampa in corso...","Stampa",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                        \n
                        \n
                        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Stampa pronta per l'avvio.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Questo file è stato troncato a causa dei limiti di spazio. Effettua il download per visualizzare l'intero file.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Scarica file",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Caricamento dell'anteprima non riuscito. Aggiorna la pagina."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("Non disponi delle autorizzazioni per visualizzare il file in anteprima.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>j)return void this.triggerError(new Error("Caricamento dell'anteprima non riuscito. Aggiorna la pagina."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},A*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Caricamento dell'anteprima non riuscito. Il tipo di file potrebbe non essere supportato.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                        \n
                        \n \n \n \n
                        \n
                        \n
                        \n \n
                        \n \n \n
                        \n
                        \n
                        \n
                        \n
                        \n \n
                        \n \n \n
                        \n
                        \n
                        \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("Autore evidenziazione: {1}",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Il tuo browser non supporta l'anteprima per {1}.",["Immagini a 360 gradi"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Il tuo browser non supporta l'anteprima per {1}.",["Modelli 3D"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Il formato di file non è supportato."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Il tuo browser non supporta l'anteprima per {1}.",["Video a 360 gradi"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                        \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Fai clic per inserire il numero di pagina",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Pagina successiva",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Attiva schermo intero",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Disattiva schermo intero",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Riduci",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Ingrandisci",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Pagina precedente",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Fai clic per inserire il numero di pagina",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Pagina successiva",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Attiva schermo intero",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Disattiva schermo intero",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Ruota a sinistra",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Attiva schermo intero",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Disattiva schermo intero",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Attiva schermo intero",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Disattiva schermo intero",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                        ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Riproduci"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Disattiva audio"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Attiva schermo intero"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Impostazioni"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Dispositivo di scorrimento multimediale",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Dispositivo di scorrimento volume",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Disattiva schermo intero":"Attiva schermo intero";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Sospendi")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Riproduci")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Attiva audio":"Disattiva audio";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Il tuo browser non supporta l'anteprima per {1}.",["Video a 360 gradi"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                        \n
                        Velocità
                        \n
                        Normale
                        \n
                        '+p.s+'
                        \n
                        \n
                        \n
                        Qualità
                        \n
                        Automatica
                        \n
                        '+p.s+'
                        \n
                        \n
                        \n
                        '+p.t+'
                        \n
                        Velocità
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        0.25
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        0.5
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        Normale
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        1.25
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        1.5
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        2.0
                        \n
                        \n
                        \n
                        '+p.t+'
                        \n
                        Qualità
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        480p
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        1080p
                        \n
                        \n
                        \n
                        '+p.l+'
                        \n
                        Automatica
                        \n
                        \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                        \n
                        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",Ae="[object Boolean]",je="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[Ae]=at[je]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),At=se(ct,"DataView"),jt=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(At),Bt=ve(jt),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,A.prototype.clear=j,A.prototype.delete=H,A.prototype.get=D,A.prototype.has=M,A.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(At&&Gt(new At(new ArrayBuffer(1)))!=Ge||jt&&Gt(new jt)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                        \n
                        \n \n \n
                        \n \n \n \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n \n
                        \n
                        \n \n
                        \n
                        \n
                        \n \n \n
                        \n'},function(e,t){e.exports='
                        \n
                        \n
                        \n \n
                        \n
                        \n \n
                        \n
                        \n
                        \n \n  / \n \n \n \n
                        \n
                        \n'},function(e,t){e.exports='
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n {{accessibilityText}}\n
                        \n
                        \n
                        \n
                        \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/it-IT/src/lib/loadingIcon.gif b/dist/0.112.0/it-IT/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/ja-JP/csv.js b/dist/0.112.0/ja-JP/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/ja-JP/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                        "],c=[3,"","
                        "],d=[1,'',""],p={"*":[1,"?
                        ","
                        "],area:[1,"",""],col:[2,"","
                        "],legend:[1,"
                        ","
                        "],param:[1,"",""],tr:[2,"","
                        "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                        ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/ja-JP/preview.js b/dist/0.112.0/ja-JP/preview.js deleted file mode 100644 index 85fbb7f3a..000000000 --- a/dist/0.112.0/ja-JP/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('アバター').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                        '+i+"
                        ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                        \n
                        \n
                        '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                        ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                        \n

                        \n
                        \n \n
                        \n
                        \n
                        \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                        \n
                        \n
                        \n \n
                        \n \n \n
                        \n
                        \n
                        \n
                        \n
                        \n \n
                        \n \n \n
                        \n
                        \n
                        \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"投稿中...":h.h(e.user.name)||"とあるユーザー";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                        '+r+'
                        \n
                        \n
                        '+n+'
                        \n
                        '+o+'
                        \n
                        \n
                        '+a+'
                        \n \n
                        \n
                        \n この注釈を削除しますか?\n
                        \n
                        \n \n \n
                        \n
                        ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                        \n \n
                          \n
                          \n \n
                          ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("ドキュメントにコメントをつけるには任意の場所をクリックします"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="このファイルの注釈を読み込めませんでした。";break;case"create":n="注釈を作成できませんでした。",e.showAnnotations();break;case"delete":n="注釈を削除できませんでした。",e.showAnnotations();break;case"authorization":n="セッションが期限切れです。ページを更新してください。"}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="プレビューを生成中...";e.querySelector(m.A).textContent="ファイルのダウンロード"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="前のファイル",i.title="次のファイル",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                          \n
                          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("印刷の準備をしています...","印刷",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="印刷の準備ができました。",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="プレビューがロードされませんでした。このドキュメントは保護されている可能性があります。"),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("印刷の準備をしています...","印刷",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                          \n
                          \n
                          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="印刷の準備ができました。",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="サイズの制限により、このファイルの一部が省略されています。ファイル全体を表示するには、ダウンロードしてください。";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="ファイルのダウンロード",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("プレビューがロードされませんでした。ページを更新してください。"))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("このファイルをプレビューする権限がありません。");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("プレビューがロードされませんでした。ページを更新してください。"));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"プレビューがロードされませんでした。このファイルタイプはサポートされていない可能性があります。",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                          \n
                          \n \n \n \n
                          \n
                          \n
                          \n \n
                          \n \n \n
                          \n
                          \n
                          \n
                          \n
                          \n \n
                          \n \n \n
                          \n
                          \n
                          \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1}強調表示",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("お使いのブラウザは{1}のプレビューをサポートしていません。",["360度画像"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("お使いのブラウザは{1}のプレビューをサポートしていません。",["3Dモデル"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("このファイル形式はサポートされていません。"))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("お使いのブラウザは{1}のプレビューをサポートしていません。",["360度ビデオ"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                          \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("クリックしてページ番号を入力",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("次のページ",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("全画面表示に切り替えます",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("全画面表示を終了します",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("縮小",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("拡大",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("前のページ",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("クリックしてページ番号を入力",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("次のページ",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("全画面表示に切り替えます",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("全画面表示を終了します",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("左に回転",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("全画面表示に切り替えます",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("全画面表示を終了します",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("全画面表示に切り替えます",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("全画面表示を終了します",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                          ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"再生"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"ミュート"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"全画面表示に切り替えます"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"設定"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"メディアスライダ",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"音量スライダ",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"全画面表示を終了します":"全画面表示に切り替えます";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"一時停止")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"再生")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"ミュート解除":"ミュート";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("お使いのブラウザは{1}のプレビューをサポートしていません。",["360度ビデオ"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                          \n
                          速度
                          \n
                          標準
                          \n
                          '+p.s+'
                          \n
                          \n
                          \n
                          品質
                          \n
                          自動
                          \n
                          '+p.s+'
                          \n
                          \n
                          \n
                          '+p.t+'
                          \n
                          速度
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          0.25
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          0.5
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          標準
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          1.25
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          1.5
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          2.0
                          \n
                          \n
                          \n
                          '+p.t+'
                          \n
                          品質
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          480p
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          1080p
                          \n
                          \n
                          \n
                          '+p.l+'
                          \n
                          自動
                          \n
                          \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                          \n
                          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                          \n
                          \n \n \n
                          \n \n \n \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n \n
                          \n
                          \n \n
                          \n
                          \n
                          \n \n \n
                          \n'},function(e,t){e.exports='
                          \n
                          \n
                          \n \n
                          \n
                          \n \n
                          \n
                          \n
                          \n \n  / \n \n \n \n
                          \n
                          \n'},function(e,t){e.exports='
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n {{accessibilityText}}\n
                          \n
                          \n
                          \n
                          \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/ja-JP/src/lib/loadingIcon.gif b/dist/0.112.0/ja-JP/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/ko-KR/csv.js b/dist/0.112.0/ko-KR/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/ko-KR/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                          "],c=[3,"","
                          "],d=[1,'',""],p={"*":[1,"?
                          ","
                          "],area:[1,"",""],col:[2,"","
                          "],legend:[1,"
                          ","
                          "],param:[1,"",""],tr:[2,"","
                          "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                          ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/ko-KR/preview.js b/dist/0.112.0/ko-KR/preview.js deleted file mode 100644 index 6b4635592..000000000 --- a/dist/0.112.0/ko-KR/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('아바타').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                          '+i+"
                          ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                          \n
                          \n
                          '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                          ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                          \n

                          \n
                          \n \n
                          \n
                          \n
                          \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"확인",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                          \n
                          \n
                          \n \n
                          \n \n \n
                          \n
                          \n
                          \n
                          \n
                          \n \n
                          \n \n \n
                          \n
                          \n
                          \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"게시 중...":h.h(e.user.name)||"일부 사용자";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                          '+r+'
                          \n
                          \n
                          '+n+'
                          \n
                          '+o+'
                          \n
                          \n
                          '+a+'
                          \n \n
                          \n
                          \n 이 주석을 삭제하시겠습니까?\n
                          \n
                          \n \n \n
                          \n
                          ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                          \n \n
                            \n
                            \n \n
                            ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("아무 곳이나 클릭하여 문서에 코멘트를 추가하십시오."),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="죄송합니다. 이 파일에 대한 주석을 로드하지 못했습니다.";break;case"create":n="죄송합니다. 주석을 생성할 수 없습니다.",e.showAnnotations();break;case"delete":n="죄송합니다. 주석을 삭제할 수 없습니다.",e.showAnnotations();break;case"authorization":n="세션이 만료되었습니다. 페이지를 새로 고치십시오."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="미리 보기 생성 중...";e.querySelector(m.A).textContent="파일 다운로드"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="이전 파일",i.title="다음 파일",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                            \n
                            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("인쇄 준비 중...","인쇄",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="인쇄할 준비가 되었습니다.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="죄송합니다. 미리 보기가 로드되지 않았습니다. 이 문서는 보호받는 문서일 수 있습니다."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("인쇄 준비 중...","인쇄",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                            \n
                            \n
                            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="인쇄할 준비가 되었습니다.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="크기 제한으로 인해 이 파일이 잘렸습니다. 전체 파일을 보려면 다운로드하십시오.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="파일 다운로드",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("죄송합니다. 미리 보기가 로드되지 않았습니다. 페이지를 새로 고치십시오."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("죄송합니다. 이 파일을 미리 볼 수 있는 권한이 없습니다.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("죄송합니다. 미리 보기가 로드되지 않았습니다. 페이지를 새로 고치십시오."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"죄송합니다. 미리 보기가 로드되지 않았습니다. 이 파일 유형이 지원되지 않을 수 있습니다.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"확인",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                            \n
                            \n \n \n \n
                            \n
                            \n
                            \n \n
                            \n \n \n
                            \n
                            \n
                            \n
                            \n
                            \n \n
                            \n \n \n
                            \n
                            \n
                            \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} 강조 표시",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("죄송합니다. 브라우저에서 {1}에 대한 미리 보기를 지원하지 않습니다.",["360도 이미지"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("죄송합니다. 브라우저에서 {1}에 대한 미리 보기를 지원하지 않습니다.",["3D 모델"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("죄송합니다. 이 파일 형식은 지원되지 않습니다."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("죄송합니다. 브라우저에서 {1}에 대한 미리 보기를 지원하지 않습니다.",["360도 비디오"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                            \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("클릭하여 페이지 번호 입력",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("다음 페이지",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("전체 화면 시작",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("전체 화면 종료",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("축소",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("확대",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("이전 페이지",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("클릭하여 페이지 번호 입력",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("다음 페이지",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("전체 화면 시작",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("전체 화면 종료",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("왼쪽으로 회전",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("전체 화면 시작",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("전체 화면 종료",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("전체 화면 시작",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("전체 화면 종료",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                            ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"재생"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"음소거"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"전체 화면 시작"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"설정"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"미디어 슬라이더",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"볼륨 슬라이더",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"전체 화면 종료":"전체 화면 시작";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"일시 중지")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"재생")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"음소거 해제":"음소거";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("죄송합니다. 브라우저에서 {1}에 대한 미리 보기를 지원하지 않습니다.",["360도 비디오"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                            \n
                            속도
                            \n
                            일반
                            \n
                            '+p.s+'
                            \n
                            \n
                            \n
                            품질
                            \n
                            자동
                            \n
                            '+p.s+'
                            \n
                            \n
                            \n
                            '+p.t+'
                            \n
                            속도
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            0.25
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            0.5
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            일반
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            1.25
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            1.5
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            2.0
                            \n
                            \n
                            \n
                            '+p.t+'
                            \n
                            품질
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            480p
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            1080p
                            \n
                            \n
                            \n
                            '+p.l+'
                            \n
                            자동
                            \n
                            \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                            \n
                            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                            \n
                            \n \n \n
                            \n \n \n \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n
                            \n \n \n
                            \n'},function(e,t){e.exports='
                            \n
                            \n
                            \n \n
                            \n
                            \n \n
                            \n
                            \n
                            \n \n  / \n \n \n \n
                            \n
                            \n'},function(e,t){e.exports='
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n {{accessibilityText}}\n
                            \n
                            \n
                            \n
                            \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/ko-KR/src/lib/loadingIcon.gif b/dist/0.112.0/ko-KR/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/nb-NO/csv.js b/dist/0.112.0/nb-NO/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/nb-NO/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                            "],c=[3,"","
                            "],d=[1,'',""],p={"*":[1,"?
                            ","
                            "],area:[1,"",""],col:[2,"","
                            "],legend:[1,"
                            ","
                            "],param:[1,"",""],tr:[2,"","
                            "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                            ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/nb-NO/preview.js b/dist/0.112.0/nb-NO/preview.js deleted file mode 100644 index b16c94b99..000000000 --- a/dist/0.112.0/nb-NO/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),Z=n.n(K),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=Z.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                            '+i+"
                            ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                            \n
                            \n
                            '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                            ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),Z(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),Z(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),Z(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),Z(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=k,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                            \n

                            \n
                            \n \n
                            \n
                            \n
                            \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                            \n
                            \n
                            \n \n
                            \n \n \n
                            \n
                            \n
                            \n
                            \n
                            \n \n
                            \n \n \n
                            \n
                            \n
                            \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Legger ut innlegg ...":h.h(e.user.name)||"Anonym bruker";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                            '+r+'
                            \n
                            \n
                            '+n+'
                            \n
                            '+o+'
                            \n
                            \n
                            '+a+'
                            \n \n
                            \n
                            \n Slette denne annoteringen?\n
                            \n
                            \n \n \n
                            \n
                            ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                            \n \n
                              \n
                              \n \n
                              ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Klikk hvor som helst for å legge til en kommentar til dokumentet"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Kunne ikke laste inn merknader for denne filen.";break;case"create":n="Merknaden kunne ikke opprettes.",e.showAnnotations();break;case"delete":n="Merknaden kunne ikke slettes.",e.showAnnotations();break;case"authorization":n="Økten er utløpt. Oppdater siden."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Genererer forhåndsvisning ...";e.querySelector(m.A).textContent="Last ned fil"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Forrige fil",i.title="Neste fil",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                              \n
                              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Klargjør for utskrift ...","Skriv ut",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Klar til å skrive ut.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Forhåndsvisningen lastet dessverre ikke. Det kan hende at dette dokumentet er beskyttet."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Klargjør for utskrift ...","Skriv ut",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                              \n
                              \n
                              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Klar til å skrive ut.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Denne filen har blitt forminsket på grunn av størrelsesbegrensninger. Last ned for å se hele filen.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Last ned fil",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Forhåndsvisningen lastet dessverre ikke. Oppdater siden."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Du har dessverre ikke tillatelse til å forhåndsvise denne filen.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Forhåndsvisningen lastet dessverre ikke. Oppdater siden."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Forhåndsvisningen lastet dessverre ikke. Det kan hende at denne filtypen ikke støttes.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                              \n
                              \n \n \n \n
                              \n
                              \n
                              \n \n
                              \n \n \n
                              \n
                              \n
                              \n
                              \n
                              \n \n
                              \n \n \n
                              \n
                              \n
                              \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} uthevet",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Nettleseren din støtter dessverre ikke forhåndsvisning av {1}.",["360-graders bilder"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Nettleseren din støtter dessverre ikke forhåndsvisning av {1}.",["3D-modeller"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Dette filformatet støttes dessverre ikke."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Nettleseren din støtter dessverre ikke forhåndsvisning av {1}.",["360-graders videoer"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                              \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Klikk for å skrive inn sidetall",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Neste side",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Gå til fullskjerm",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Avslutt fullskjerm",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zoom ut",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zoom inn",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Forrige side",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Klikk for å skrive inn sidetall",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Neste side",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Gå til fullskjerm",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Avslutt fullskjerm",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Roter mot venstre",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Gå til fullskjerm",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Avslutt fullskjerm",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Gå til fullskjerm",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Avslutt fullskjerm",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                              ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Spill av"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Demp"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Gå til fullskjerm"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Innstillinger"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Mediebryter",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volumbryter",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Avslutt fullskjerm":"Gå til fullskjerm";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Sett på pause")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Spill av")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Opphev demping":"Demp";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Nettleseren din støtter dessverre ikke forhåndsvisning av {1}.",["360-graders videoer"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                              \n
                              Hastighet
                              \n
                              Normal
                              \n
                              '+p.s+'
                              \n
                              \n
                              \n
                              Kvalitet
                              \n
                              Automatisk
                              \n
                              '+p.s+'
                              \n
                              \n
                              \n
                              '+p.t+'
                              \n
                              Hastighet
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              0.25
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              0.5
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              Normal
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              1.25
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              1.5
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              2.0
                              \n
                              \n
                              \n
                              '+p.t+'
                              \n
                              Kvalitet
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              480p
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              1080p
                              \n
                              \n
                              \n
                              '+p.l+'
                              \n
                              Automatisk
                              \n
                              \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                              \n
                              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Ze="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Ze]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                              \n
                              \n \n \n
                              \n \n \n \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n \n
                              \n
                              \n \n
                              \n
                              \n
                              \n \n \n
                              \n'},function(e,t){e.exports='
                              \n
                              \n
                              \n \n
                              \n
                              \n \n
                              \n
                              \n
                              \n \n  / \n \n \n \n
                              \n
                              \n'},function(e,t){e.exports='
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n {{accessibilityText}}\n
                              \n
                              \n
                              \n
                              \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/nb-NO/src/lib/loadingIcon.gif b/dist/0.112.0/nb-NO/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/nl-NL/csv.js b/dist/0.112.0/nl-NL/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/nl-NL/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                              "],c=[3,"","
                              "],d=[1,'',""],p={"*":[1,"?
                              ","
                              "],area:[1,"",""],col:[2,"","
                              "],legend:[1,"
                              ","
                              "],param:[1,"",""],tr:[2,"","
                              "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                              ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/nl-NL/preview.js b/dist/0.112.0/nl-NL/preview.js deleted file mode 100644 index b21259bfe..000000000 --- a/dist/0.112.0/nl-NL/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),U=n(360),q=n.n(U),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=q.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                              '+i+"
                              ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                              \n
                              \n
                              '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                              ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:q(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=U(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=U(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=U(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&U(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],U(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),U(e,t,this.startContainer,this.startOffset)<0?-1:U(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=U(n,i,this.endContainer,this.endOffset),a=U(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),U(e,t,this.startContainer,this.startOffset)>=0&&U(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=U(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=U(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return U(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==U(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(U,"getRangeAt")&&typeof U.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=k,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                              \n

                              \n
                              \n \n
                              \n
                              \n
                              \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                              \n
                              \n
                              \n \n
                              \n \n \n
                              \n
                              \n
                              \n
                              \n
                              \n \n
                              \n \n \n
                              \n
                              \n
                              \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Plaatsen...":h.h(e.user.name)||"Een gebruiker";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                              '+r+'
                              \n
                              \n
                              '+n+'
                              \n
                              '+o+'
                              \n
                              \n
                              '+a+'
                              \n \n
                              \n
                              \n Deze aantekening verwijderen?\n
                              \n
                              \n \n \n
                              \n
                              ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                              \n \n
                                \n
                                \n \n
                                ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Klik ergens om een opmerking aan het document toe te voegen"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Er kunnen geen annotaties voor dit bestand worden geladen.";break;case"create":n="De annotatie kan niet worden gemaakt.",e.showAnnotations();break;case"delete":n="De annotatie kan niet worden verwijderd.",e.showAnnotations();break;case"authorization":n="Uw sessie is verlopen. Vernieuw de pagina."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Voorbeeld genereren...";e.querySelector(m.A).textContent="Bestand downloaden"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Vorig bestand",i.title="Volgend bestand",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                                \n
                                ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Voorbereiden voor afdrukken...","Afdrukken",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Gereed voor afdrukken.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Het voorbeeld kan niet worden geladen. Dit document is mogelijk beveiligd."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Voorbereiden voor afdrukken...","Afdrukken",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                \n
                                \n
                                ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Gereed voor afdrukken.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Dit bestand is afgekapt omdat de maximale grootte is overschreden. Download het bestand om het gehele bestand te bekijken.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Bestand downloaden",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Het voorbeeld kan niet worden geladen. Vernieuw de pagina."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("U bent niet gemachtigd om een voorbeeld van dit bestand te bekijken.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Het voorbeeld kan niet worden geladen. Vernieuw de pagina."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Het voorbeeld kan niet worden geladen. Dit bestandstype wordt mogelijk niet ondersteund.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                \n
                                \n \n \n \n
                                \n
                                \n
                                \n \n
                                \n \n \n
                                \n
                                \n
                                \n
                                \n
                                \n \n
                                \n \n \n
                                \n
                                \n
                                \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("Gemarkeerd door {1}",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Uw browser ondersteunt het bekijken van een voorbeeld van {1} niet.",["360°-afbeeldingen"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Uw browser ondersteunt het bekijken van een voorbeeld van {1} niet.",["3D-modellen"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Deze bestandsindeling wordt niet ondersteund."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Uw browser ondersteunt het bekijken van een voorbeeld van {1} niet.",["360°-video's"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Klik om het paginanummer in te voeren",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Volgende pagina",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Volledig scherm openen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Volledig scherm sluiten",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Uitzoomen",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Inzoomen",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Vorige pagina",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Klik om het paginanummer in te voeren",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Volgende pagina",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Volledig scherm openen",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Volledig scherm sluiten",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Naar links draaien",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Volledig scherm openen",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Volledig scherm sluiten",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Volledig scherm openen",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Volledig scherm sluiten",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Afspelen"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Dempen"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Volledig scherm openen"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Instellingen"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Mediaschuifregelaar",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volumeschuifregelaar",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Volledig scherm sluiten":"Volledig scherm openen";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pauzeren")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Afspelen")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Dempen annuleren":"Dempen";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Uw browser ondersteunt het bekijken van een voorbeeld van {1} niet.",["360°-video's"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                \n
                                Snelheid
                                \n
                                Normaal
                                \n
                                '+p.s+'
                                \n
                                \n
                                \n
                                Kwaliteit
                                \n
                                Automatisch
                                \n
                                '+p.s+'
                                \n
                                \n
                                \n
                                '+p.t+'
                                \n
                                Snelheid
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                0.25
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                0.5
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                Normaal
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                1.25
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                1.5
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                2.0
                                \n
                                \n
                                \n
                                '+p.t+'
                                \n
                                Kwaliteit
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                480p
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                1080p
                                \n
                                \n
                                \n
                                '+p.l+'
                                \n
                                Automatisch
                                \n
                                \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                                \n
                                ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",Ue="[object Symbol]",qe="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[Ue]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[qe]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),Ut=kt?kt.prototype:void 0,qt=Ut?Ut.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=qe)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return qe}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                \n
                                \n \n \n
                                \n \n \n \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n \n
                                \n
                                \n \n
                                \n
                                \n
                                \n \n \n
                                \n'},function(e,t){e.exports='
                                \n
                                \n
                                \n \n
                                \n
                                \n \n
                                \n
                                \n
                                \n \n  / \n \n \n \n
                                \n
                                \n'},function(e,t){e.exports='
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n {{accessibilityText}}\n
                                \n
                                \n
                                \n
                                \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/nl-NL/src/lib/loadingIcon.gif b/dist/0.112.0/nl-NL/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/pl-PL/csv.js b/dist/0.112.0/pl-PL/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/pl-PL/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                "],c=[3,"","
                                "],d=[1,'',""],p={"*":[1,"?
                                ","
                                "],area:[1,"",""],col:[2,"","
                                "],legend:[1,"
                                ","
                                "],param:[1,"",""],tr:[2,"","
                                "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/pl-PL/preview.js b/dist/0.112.0/pl-PL/preview.js deleted file mode 100644 index a3cf7b8a7..000000000 --- a/dist/0.112.0/pl-PL/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),z=n.n(B),V=n(341),F=n.n(V),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Z=n(339),K=n.n(Z),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=M.a,Ce=I.a,Pe=z.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Awatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                '+i+"
                                ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                \n
                                \n
                                '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(V(e,t.startContainer)||V(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,z(e))}function a(e){return new N(e.parentNode,z(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(Z&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=z(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=z(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),V(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=z(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=z(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Z=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Z=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&V&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=k,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                \n

                                \n
                                \n \n
                                \n
                                \n
                                \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                \n
                                \n
                                \n \n
                                \n \n \n
                                \n
                                \n
                                \n
                                \n
                                \n \n
                                \n \n \n
                                \n
                                \n
                                \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Publikowanie...":h.h(e.user.name)||"Nieokreślony użytkownik";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                '+r+'
                                \n
                                \n
                                '+n+'
                                \n
                                '+o+'
                                \n
                                \n
                                '+a+'
                                \n \n
                                \n
                                \n Czy chcesz usunąć tę uwagę?\n
                                \n
                                \n \n \n
                                \n
                                ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                \n \n
                                  \n
                                  \n \n
                                  ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Aby dodać komentarz do dokumentu, kliknij w dowolnym miejscu"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Przepraszamy, nie można wczytać uwag dla tego pliku.";break;case"create":n="Przepraszamy, nie można utworzyć uwagi.",e.showAnnotations();break;case"delete":n="Przepraszamy, nie można usunąć uwagi.",e.showAnnotations();break;case"authorization":n="Sesja wygasła. Odśwież stronę."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Trwa generowanie podglądu...";e.querySelector(g.A).textContent="Pobierz plik"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Poprzedni plik",i.title="Następny plik",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                                  \n
                                  ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Trwa przygotowywanie do drukowania...","Drukuj",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Gotowość do drukowania.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Przepraszamy, nie można wczytać podglądu. Ten dokument może być chroniony."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=z},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Trwa przygotowywanie do drukowania...","Drukuj",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                  \n
                                  \n
                                  ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Gotowość do drukowania.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Plik został obcięty ze względu na zbyt duży rozmiar. Pobierz plik, aby zobaczyć go w całości.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Pobierz plik",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Przepraszamy, nie można wczytać podglądu. Odśwież stronę."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Przepraszamy, nie masz uprawnień do wyświetlania podglądu tego pliku.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Przepraszamy, nie można wczytać podglądu. Odśwież stronę."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Przepraszamy, nie można wczytać podglądu. Ten typ pliku może nie być obsługiwany.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                  \n
                                  \n \n \n \n
                                  \n
                                  \n
                                  \n \n
                                  \n \n \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n \n
                                  \n \n \n
                                  \n
                                  \n
                                  \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("Wyróżniono: {1}",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Przepraszamy, Twoja przeglądarka nie obsługuje wyświetlania podglądu pliku typu {1}.",["Obrazy 360-stopniowe"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Przepraszamy, Twoja przeglądarka nie obsługuje wyświetlania podglądu pliku typu {1}.",["Modele 3D"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Przepraszamy, ten format pliku nie jest obsługiwany."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Przepraszamy, Twoja przeglądarka nie obsługuje wyświetlania podglądu pliku typu {1}.",["Filmy 360-stopniowe"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                  \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Kliknij, aby wprowadzić numer strony",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Następna strona",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Włącz tryb pełnoekranowy",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Zamknij tryb pełnoekranowy",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Pomniejsz",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Powiększ",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Poprzednia strona",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Kliknij, aby wprowadzić numer strony",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Następna strona",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Włącz tryb pełnoekranowy",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Zamknij tryb pełnoekranowy",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Obróć w lewo",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Włącz tryb pełnoekranowy",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Zamknij tryb pełnoekranowy",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Włącz tryb pełnoekranowy",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Zamknij tryb pełnoekranowy",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                  ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Odtwórz"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Wycisz"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Włącz tryb pełnoekranowy"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Ustawienia"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Suwak multimediów",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Suwak głośności",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Zamknij tryb pełnoekranowy":"Włącz tryb pełnoekranowy";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Wstrzymaj")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Odtwórz")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Wyłącz wyciszenie":"Wycisz";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Przepraszamy, Twoja przeglądarka nie obsługuje wyświetlania podglądu pliku typu {1}.",["Filmy 360-stopniowe"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                  \n
                                  Prędkość
                                  \n
                                  Normalna
                                  \n
                                  '+p.s+'
                                  \n
                                  \n
                                  \n
                                  Jakość
                                  \n
                                  Automatyczna
                                  \n
                                  '+p.s+'
                                  \n
                                  \n
                                  \n
                                  '+p.t+'
                                  \n
                                  Prędkość
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  0.25
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  0.5
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  Normalna
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  1.25
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  1.5
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  2.0
                                  \n
                                  \n
                                  \n
                                  '+p.t+'
                                  \n
                                  Jakość
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  480p
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  1080p
                                  \n
                                  \n
                                  \n
                                  '+p.l+'
                                  \n
                                  Automatyczna
                                  \n
                                  \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                                  \n
                                  ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=z(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",ze="[object RegExp]",Ve="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ze]=at[Ke]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[ze]=at[Ve]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),zt=ve(Ht),Vt=ve(Dt),Ft=ve(Mt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=Ve||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case zt:return Be;case Vt:return Ve;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);V(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);V(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;V(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&V(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                  \n
                                  \n \n \n
                                  \n \n \n \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n \n
                                  \n
                                  \n \n
                                  \n
                                  \n
                                  \n \n \n
                                  \n'},function(e,t){e.exports='
                                  \n
                                  \n
                                  \n \n
                                  \n
                                  \n \n
                                  \n
                                  \n
                                  \n \n  / \n \n \n \n
                                  \n
                                  \n'},function(e,t){e.exports='
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n {{accessibilityText}}\n
                                  \n
                                  \n
                                  \n
                                  \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/pl-PL/src/lib/loadingIcon.gif b/dist/0.112.0/pl-PL/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/pt-BR/csv.js b/dist/0.112.0/pt-BR/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/pt-BR/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                  "],c=[3,"","
                                  "],d=[1,'',""],p={"*":[1,"?
                                  ","
                                  "],area:[1,"",""],col:[2,"","
                                  "],legend:[1,"
                                  ","
                                  "],param:[1,"",""],tr:[2,"","
                                  "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                  ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/pt-BR/preview.js b/dist/0.112.0/pt-BR/preview.js deleted file mode 100644 index fa4603450..000000000 --- a/dist/0.112.0/pt-BR/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),j&&(e[L]=j),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),j&&(o=o+"&"+T+"="+encodeURI(j)),H&&(o=o+"&"+A+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",A="box_client_version",j="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),A=n.n(T),j=n(358),H=n.n(j),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return Ae}),n.d(t,"C",function(){return je}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=A.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,Ae=Y.a,je=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                  '+i+"
                                  ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                  \n
                                  \n
                                  '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){j.initialized=!0,j.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,j.config.alertOnFail)}function c(e){s("Rangy warning: "+e,j.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!j.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");j.initialized=!0,j.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,j);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&A.isHostMethod(e,"setTimeout")&&A.isHostObject(e,"document")}function b(e,t,n){var i;if(e?A.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=j(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",A=e.util,j=A.getBody;A.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),A.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");A.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!A.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),A.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");A.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!A.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!A.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                  ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:j,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),j.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,j),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),j.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new j("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=O,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!j.initialized&&j.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),j})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                  \n

                                  \n
                                  \n \n
                                  \n
                                  \n
                                  \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Ok",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                  \n
                                  \n
                                  \n \n
                                  \n \n \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n \n
                                  \n \n \n
                                  \n
                                  \n
                                  \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Publicando...":h.h(e.user.name)||"Alguns usuários";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                  '+r+'
                                  \n
                                  \n
                                  '+n+'
                                  \n
                                  '+o+'
                                  \n
                                  \n
                                  '+a+'
                                  \n \n
                                  \n
                                  \n Apagar esta anotação?\n
                                  \n
                                  \n \n \n
                                  \n
                                  ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                  \n \n
                                    \n
                                    \n \n
                                    ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Clique em qualquer lugar para fazer um comentário no documento"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Desculpe, não foi possível carregar as anotações para este arquivo.";break;case"create":n="Desculpe, não foi possível criar a anotação.",e.showAnnotations();break;case"delete":n="Desculpe, não foi possível excluir a anotação.",e.showAnnotations();break;case"authorization":n="Sua sessão expirou. Atualize a página."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Gerando visualização...";e.querySelector(g.A).textContent="Baixar arquivo"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Arquivo anterior",i.title="Próximo arquivo",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                                    \n
                                    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Preparando impressão...","Imprimir",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Pronto para imprimir.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(A,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(j,n),t-=1}while(t>0&&n>j);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>j,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Lamentamos, mas a pré-visualização não foi carregada. Este documento pode estar protegido."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Preparando impressão...","Imprimir",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                    \n
                                    \n
                                    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Pronto para imprimir.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Este arquivo foi truncado devido ao tamanho aos limites de tamanho. Faça download para visualizar o arquivo completo.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Baixar arquivo",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Lamentamos, mas a pré-visualização não foi carregada. Atualize a página."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("Lamentamos, mas você não tem permissão para pré-visualizar este arquivo.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>j)return void this.triggerError(new Error("Lamentamos, mas a pré-visualização não foi carregada. Atualize a página."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},A*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Lamentamos, mas a pré-visualização não foi carregada. É possível que esse tipo de arquivo possa não ser suportado.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Ok",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                    \n
                                    \n \n \n \n
                                    \n
                                    \n
                                    \n \n
                                    \n \n \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n \n
                                    \n \n \n
                                    \n
                                    \n
                                    \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} destacado",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Lamentamos, mas seu navegador não é compatível com a pré-visualização de {1}.",["Imagens em 360 graus"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Lamentamos, mas seu navegador não é compatível com a pré-visualização de {1}.",["Modelos 3D"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Lamentamos, mas este formato de arquivo não é suportado."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Lamentamos, mas seu navegador não é compatível com a pré-visualização de {1}.",["Vídeos em 360 graus"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                    \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Clique para inserir o número da página",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Próxima página",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Entrar no modo de tela inteira",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Sair do modo de tela inteira",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Diminuir zoom",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Aumentar zoom",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Página anterior",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Clique para inserir o número da página",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Próxima página",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Entrar no modo de tela inteira",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Sair do modo de tela inteira",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Girar para a esquerda",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Entrar no modo de tela inteira",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Sair do modo de tela inteira",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Entrar no modo de tela inteira",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Sair do modo de tela inteira",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                    ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Reproduzir"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Desativar som"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Entrar no modo de tela inteira"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Configurações"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Controle deslizante de mídia",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Controle deslizante de volume",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Sair do modo de tela inteira":"Entrar no modo de tela inteira";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pausar")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Reproduzir")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Ativar som":"Desativar som";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Lamentamos, mas seu navegador não é compatível com a pré-visualização de {1}.",["Vídeos em 360 graus"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                    \n
                                    Velocidade
                                    \n
                                    Normal
                                    \n
                                    '+p.s+'
                                    \n
                                    \n
                                    \n
                                    Qualidade
                                    \n
                                    Automático
                                    \n
                                    '+p.s+'
                                    \n
                                    \n
                                    \n
                                    '+p.t+'
                                    \n
                                    Velocidade
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    0.25
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    0.5
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    Normal
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    1.25
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    1.5
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    2.0
                                    \n
                                    \n
                                    \n
                                    '+p.t+'
                                    \n
                                    Qualidade
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    480p
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    1080p
                                    \n
                                    \n
                                    \n
                                    '+p.l+'
                                    \n
                                    Automático
                                    \n
                                    \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                                    \n
                                    ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",Ae="[object Boolean]",je="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[Ae]=at[je]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),At=se(ct,"DataView"),jt=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(At),Bt=ve(jt),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,A.prototype.clear=j,A.prototype.delete=H,A.prototype.get=D,A.prototype.has=M,A.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(At&&Gt(new At(new ArrayBuffer(1)))!=Ge||jt&&Gt(new jt)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                    \n
                                    \n \n \n
                                    \n \n \n \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n \n
                                    \n
                                    \n \n
                                    \n
                                    \n
                                    \n \n \n
                                    \n'},function(e,t){e.exports='
                                    \n
                                    \n
                                    \n \n
                                    \n
                                    \n \n
                                    \n
                                    \n
                                    \n \n  / \n \n \n \n
                                    \n
                                    \n'},function(e,t){e.exports='
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n {{accessibilityText}}\n
                                    \n
                                    \n
                                    \n
                                    \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/pt-BR/src/lib/loadingIcon.gif b/dist/0.112.0/pt-BR/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/ru-RU/csv.js b/dist/0.112.0/ru-RU/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/ru-RU/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                    "],c=[3,"","
                                    "],d=[1,'',""],p={"*":[1,"?
                                    ","
                                    "],area:[1,"",""],col:[2,"","
                                    "],legend:[1,"
                                    ","
                                    "],param:[1,"",""],tr:[2,"","
                                    "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                    ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/ru-RU/preview.js b/dist/0.112.0/ru-RU/preview.js deleted file mode 100644 index b70ad2d5c..000000000 --- a/dist/0.112.0/ru-RU/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Аватар').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                    '+i+"
                                    ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                    \n
                                    \n
                                    '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                    ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                    \n

                                    \n
                                    \n \n
                                    \n
                                    \n
                                    \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"ОК",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                    \n
                                    \n
                                    \n \n
                                    \n \n \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n \n
                                    \n \n \n
                                    \n
                                    \n
                                    \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Публикация...":h.h(e.user.name)||"Пользователь";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                    '+r+'
                                    \n
                                    \n
                                    '+n+'
                                    \n
                                    '+o+'
                                    \n
                                    \n
                                    '+a+'
                                    \n \n
                                    \n
                                    \n Удалить это примечание?\n
                                    \n
                                    \n \n \n
                                    \n
                                    ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                    \n \n
                                      \n
                                      \n \n
                                      ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Нажмите на любую часть документа, чтобы добавить комментарий."),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Не удалось загрузить примечания для этого файла.";break;case"create":n="Невозможно создать примечание.",e.showAnnotations();break;case"delete":n="Невозможно удалить примечание.",e.showAnnotations();break;case"authorization":n="Время сеанса истекло. Обновите страницу."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Создание предпросмотра...";e.querySelector(m.A).textContent="Скачать файл"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Предыдущий файл",i.title="Следующий файл",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                                      \n
                                      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Подготовка к печати...","Печать",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Готово к печати.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Не удалось загрузить предпросмотр. Возможно, документ защищен паролем."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Подготовка к печати...","Печать",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                      \n
                                      \n
                                      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Готово к печати.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Файл сокращен из-за ограничений по размеру. Чтобы просмотреть весь файл, скачайте его.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Скачать файл",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Не удалось загрузить предпросмотр. Обновите страницу."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("У вас нет прав на предпросмотр файла.");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Не удалось загрузить предпросмотр. Обновите страницу."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Не удалось загрузить предпросмотр. Возможно, этот тип файлов не поддерживается.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"ОК",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                      \n
                                      \n \n \n \n
                                      \n
                                      \n
                                      \n \n
                                      \n \n \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n \n
                                      \n \n \n
                                      \n
                                      \n
                                      \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("Выделено: {1}",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Браузер не поддерживает предпросмотр для этого типа файлов: {1}.",["панорамные изображения"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Браузер не поддерживает предпросмотр для этого типа файлов: {1}.",["3D-модели"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Этот формат файлов не поддерживается."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Браузер не поддерживает предпросмотр для этого типа файлов: {1}.",["панорамные видео"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                      \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Нажмите, чтобы ввести номер страницы",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Следующая страница",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Полноэкранный режим",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Выход из полноэкранного режима",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Уменьшить",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Увеличить",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Предыдущая страница",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Нажмите, чтобы ввести номер страницы",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Следующая страница",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Полноэкранный режим",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Выход из полноэкранного режима",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Повернуть влево",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Полноэкранный режим",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Выход из полноэкранного режима",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Полноэкранный режим",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Выход из полноэкранного режима",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                      ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Воспроизвести"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Без звука"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Полноэкранный режим"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Настройки"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Ползунок медиа",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Ползунок громкости",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Выход из полноэкранного режима":"Полноэкранный режим";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Приостановить")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Воспроизвести")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Со звуком":"Без звука";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Браузер не поддерживает предпросмотр для этого типа файлов: {1}.",["панорамные видео"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                      \n
                                      Скорость
                                      \n
                                      Обычная
                                      \n
                                      '+p.s+'
                                      \n
                                      \n
                                      \n
                                      Качество
                                      \n
                                      Авто
                                      \n
                                      '+p.s+'
                                      \n
                                      \n
                                      \n
                                      '+p.t+'
                                      \n
                                      Скорость
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      0.25
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      0.5
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      Обычная
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      1.25
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      1.5
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      2.0
                                      \n
                                      \n
                                      \n
                                      '+p.t+'
                                      \n
                                      Качество
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      480p
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      1080p
                                      \n
                                      \n
                                      \n
                                      '+p.l+'
                                      \n
                                      Авто
                                      \n
                                      \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                                      \n
                                      ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                      \n
                                      \n \n \n
                                      \n \n \n \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n \n
                                      \n
                                      \n \n
                                      \n
                                      \n
                                      \n \n \n
                                      \n'},function(e,t){e.exports='
                                      \n
                                      \n
                                      \n \n
                                      \n
                                      \n \n
                                      \n
                                      \n
                                      \n \n  / \n \n \n \n
                                      \n
                                      \n'},function(e,t){e.exports='
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n {{accessibilityText}}\n
                                      \n
                                      \n
                                      \n
                                      \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/ru-RU/src/lib/loadingIcon.gif b/dist/0.112.0/ru-RU/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/sv-SE/csv.js b/dist/0.112.0/sv-SE/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/sv-SE/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                      "],c=[3,"","
                                      "],d=[1,'',""],p={"*":[1,"?
                                      ","
                                      "],area:[1,"",""],col:[2,"","
                                      "],legend:[1,"
                                      ","
                                      "],param:[1,"",""],tr:[2,"","
                                      "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                      ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/sv-SE/preview.js b/dist/0.112.0/sv-SE/preview.js deleted file mode 100644 index e19333c56..000000000 --- a/dist/0.112.0/sv-SE/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),Z=n.n(K),J=n(340),Y=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=Z.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                      '+i+"
                                      ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                      \n
                                      \n
                                      '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                      ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),Z(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),Z(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),Z(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),Z(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=k,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                      \n

                                      \n
                                      \n \n
                                      \n
                                      \n
                                      \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                      \n
                                      \n
                                      \n \n
                                      \n \n \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n \n
                                      \n \n \n
                                      \n
                                      \n
                                      \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Publicerar ...":h.h(e.user.name)||"En användare";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                      '+r+'
                                      \n
                                      \n
                                      '+n+'
                                      \n
                                      '+o+'
                                      \n
                                      \n
                                      '+a+'
                                      \n \n
                                      \n
                                      \n Vill du radera den här anteckningen?\n
                                      \n
                                      \n \n \n
                                      \n
                                      ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                      \n \n
                                        \n
                                        \n \n
                                        ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Klicka var som helst för att lägga till en kommentar till dokumentet"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Tyvärr, det gick inte att ladda anteckningar för den här filen.";break;case"create":n="Tyvärr, det gick inte att skapa anteckningen.",e.showAnnotations();break;case"delete":n="Tyvärr, det gick inte att radera anteckningen.",e.showAnnotations();break;case"authorization":n="Din session har gått ut. Uppdatera sidan."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="Genererar förhandsgranskning...";e.querySelector(m.A).textContent="Hämta fil"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="Föregående fil",i.title="Nästa fil",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                                        \n
                                        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Förbereder utskrift …","Skriv ut",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Redo för utskrift.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Det gick inte att läsa in förhandsgranskningen. Dokumentet kan vara skyddat."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Förbereder utskrift …","Skriv ut",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                        \n
                                        \n
                                        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Redo för utskrift.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Den här filen har trunkerats på grund av storleksbegränsningar. Hämta om du vill se hela filen.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Hämta fil",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Det gick inte att läsa in förhandsgranskningen. Uppdatera sidan."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Du har inte behörigheter att förhandsgranska filen.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Det gick inte att läsa in förhandsgranskningen. Uppdatera sidan."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Det gick inte att läsa in förhandsgranskningen. Filtypen kanske inte stöds.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"OK",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                        \n
                                        \n \n \n \n
                                        \n
                                        \n
                                        \n \n
                                        \n \n \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n \n
                                        \n \n \n
                                        \n
                                        \n
                                        \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} markerat",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Webbläsaren stöder inte förhandsgranskning av {1}.",["360-graders bilder"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Webbläsaren stöder inte förhandsgranskning av {1}.",["3D-modeller"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Filformatet stöds inte."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Webbläsaren stöder inte förhandsgranskning av {1}.",["360-graders videoklipp"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                        \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Klicka för att ange ett sidnummer",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Nästa sida",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("Visa helskärm",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Avsluta helskärm",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Zooma ut",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("Zooma in",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("Föregående sida",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("Klicka för att ange ett sidnummer",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Nästa sida",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("Visa helskärm",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("Avsluta helskärm",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Rotera åt vänster",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Visa helskärm",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Avsluta helskärm",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Visa helskärm",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Avsluta helskärm",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                        ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Spela upp"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Ljud av"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Visa helskärm"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Inställningar"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Medieskjutreglage",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Volymskjutreglage",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Avsluta helskärm":"Visa helskärm";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Pausa")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Spela upp")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Ljud på":"Ljud av";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Webbläsaren stöder inte förhandsgranskning av {1}.",["360-graders videoklipp"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                        \n
                                        Hastighet
                                        \n
                                        Normal
                                        \n
                                        '+p.s+'
                                        \n
                                        \n
                                        \n
                                        Kvalitet
                                        \n
                                        Automatisk
                                        \n
                                        '+p.s+'
                                        \n
                                        \n
                                        \n
                                        '+p.t+'
                                        \n
                                        Hastighet
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        0.25
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        0.5
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        Normal
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        1.25
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        1.5
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        2.0
                                        \n
                                        \n
                                        \n
                                        '+p.t+'
                                        \n
                                        Kvalitet
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        480p
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        1080p
                                        \n
                                        \n
                                        \n
                                        '+p.l+'
                                        \n
                                        Automatisk
                                        \n
                                        \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                                        \n
                                        ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Ze="[object Int16Array]",Je="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Ze]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                        \n
                                        \n \n \n
                                        \n \n \n \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n \n
                                        \n
                                        \n \n
                                        \n
                                        \n
                                        \n \n \n
                                        \n'},function(e,t){e.exports='
                                        \n
                                        \n
                                        \n \n
                                        \n
                                        \n \n
                                        \n
                                        \n
                                        \n \n  / \n \n \n \n
                                        \n
                                        \n'},function(e,t){e.exports='
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n {{accessibilityText}}\n
                                        \n
                                        \n
                                        \n
                                        \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/sv-SE/src/lib/loadingIcon.gif b/dist/0.112.0/sv-SE/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/tr-TR/csv.js b/dist/0.112.0/tr-TR/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/tr-TR/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                        "],c=[3,"","
                                        "],d=[1,'',""],p={"*":[1,"?
                                        ","
                                        "],area:[1,"",""],col:[2,"","
                                        "],legend:[1,"
                                        ","
                                        "],param:[1,"",""],tr:[2,"","
                                        "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                        ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/tr-TR/preview.js b/dist/0.112.0/tr-TR/preview.js deleted file mode 100644 index b4b9fee60..000000000 --- a/dist/0.112.0/tr-TR/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function g(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function O(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=m,t.h=g,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=k,t.n=O,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),m=n.n(v),g=n(357),y=n.n(g),b=n(359),E=n.n(b),w=n(365),_=n.n(w),k=n(367),O=n.n(k),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),Y=n(339),K=n.n(Y),J=n(340),Z=n.n(J),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return me}),n.d(t,"o",function(){return ge}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return ke}),n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=m.a,ve=y.a,me=E.a,ge=_.a,ye=O.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,ke=H.a,Oe=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=K.a,je=Z.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('Avatar').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                        '+i+"
                                        ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function m(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=m,t.f=g,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return m}),n.d(t,"s",function(){return g}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,m="active",g="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",k="highlight",O="highlight-comment",C=[E,w],P=[m,g],S=[y,g],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),m=n(9),g=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(g.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(g.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){m.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(m.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===g.p||t===g.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=k();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=E=m=b=void 0}function p(){return void 0===b?y:h(k())}function f(){var e=k(),n=c(e);if(v=arguments,m=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,E,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,g=P?w(s(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,k=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=m.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-O;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                        \n
                                        \n
                                        '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,m=p.top+E;return e.removeChild(i),d([l.left-v,l.top-m,c.left-v,c.top-m,u.left-v,u.top-m,h.left-v,h.top-m],f,n)}function v(e){var t=g(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var m=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,k=.75,O=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=m,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=g},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,O)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,k)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function m(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function g(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?m(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function O(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                        ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+k(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:g,getIframeDocument:m,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:k,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:O,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function m(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function g(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function k(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function O(e){return!!e.startContainer&&!!e.endContainer&&!(Y&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&k(e.startContainer,e.startOffset)&&k(e.endContainer,e.endOffset)}function C(e){if(!O(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=me}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,J),y(X(n),Z);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){g(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){g(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){g(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){g(e,!1),y(e,J);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),K(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),K(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),K(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),K(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,me=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:me},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==me},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return O(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var m=document.createElement("div");m.innerHTML="123";var g=m.firstChild,y=l(document);y.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(m),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,m,g=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(g,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(m=h.nextSibling,d==-1&&m&&u(m)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(m.data)){var k=s.duplicate(),O=k.text.replace(/\r\n/g,"\r").length;for(_=k.moveStart("character",O);(d=k.compareEndPoints("StartToEnd",k))==-1;)_++,k.moveStart("character",1)}else _=s.text.length;v=new a(m,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)Y=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),Y=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return k(this)},ie.detach=function(){b(this.win,"delete"),y(this)},g.detachAll=function(){b(null,"deleteAll")},g.inspect=k,g.isDirectionBackward=n,e.Selection=g,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                        \n

                                        \n
                                        \n \n
                                        \n
                                        \n
                                        \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Tamam",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),m=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),m(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                        \n
                                        \n
                                        \n \n
                                        \n \n \n
                                        \n
                                        \n
                                        \n
                                        \n
                                        \n \n
                                        \n \n \n
                                        \n
                                        \n
                                        \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"Gönderiliyor...":h.h(e.user.name)||"Herhangi Bir Kullanıcı";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                        '+r+'
                                        \n
                                        \n
                                        '+n+'
                                        \n
                                        '+o+'
                                        \n
                                        \n
                                        '+a+'
                                        \n \n
                                        \n
                                        \n Bu açıklama silinsin mi?\n
                                        \n
                                        \n \n \n
                                        \n
                                        ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),m=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,m=i(e.x,e.y,f,a,u),g=l(m,2),y=g[0],b=g[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,k=s.k(_,a,u,E);return k&&(y*=k.x,b*=k.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),m=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                        \n \n
                                          \n
                                          \n \n
                                          ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("Belgeye bir yorum eklemek için herhangi bir yere tıklayın"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="Üzgünüz, açıklamalar bu dosya için yüklenemedi.";break;case"create":n="Üzgünüz, açıklama oluşturulamadı.",e.showAnnotations();break;case"delete":n="Üzgünüz, açıklama silinemedi.",e.showAnnotations();break;case"authorization":n="Oturumunuzun süresi sona erdi. Lütfen sayfayı yenileyin."}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=g.r,E.classList.add(g.s),"dark"===e&&b.classList.add(g.t),t){n.querySelector(g.u).classList.add(g.v);var i=n.querySelector(g.w);i.src=t,i.classList.remove(g.v)}}function r(){var e=b.querySelector(g.x);if(e){e.querySelector(g.y).innerHTML=y.a;e.querySelector(g.z).textContent="Ön Görüntüleme Oluşturuluyor...";e.querySelector(g.A).textContent="Dosyayı İndir"}}function o(){E&&E.removeEventListener("mousemove",k),b&&(b.innerHTML=""),document.removeEventListener("keydown",O)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,k=l,O=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(m.m)(b,v.a),b=b.querySelector(g.B),E=b.querySelector(g.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",O),b}function s(e,t){if(b){var n=b.querySelector(g.C),i=b.querySelector(g.D);if(n&&i&&(n.title="Önceki dosya",i.title="Sonraki dosya",n.classList.add(g.v),i.classList.add(g.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",k),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",k);var r=t.indexOf(e);r>0&&n.classList.remove(g.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),m=n(126),g=n(308),y=(n.n(g),function(){function e(e,t){for(var n=0;n\n
                                          \n
                                          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("Yazdırmaya hazırlanıyor...","Yazdır",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="Yazdırmaya hazır.",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="Üzgünüz, ön görüntüleme yüklenmedi. Bu belge korumalı olabilir."),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new m.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),m=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;ng;var l=a.truncated?{Range:"bytes=0-"+g}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("Yazdırmaya hazırlanıyor...","Yazdır",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([m],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                          \n
                                          \n
                                          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="Yazdırmaya hazır.",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="Bu dosya boyut limitleri nedeniyle kırpıldı. Dosyanın tümünü görüntülemek için lütfen indirin.";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="Dosyayı İndir",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=g}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),O=0,v=k=m=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,m=this,k=e,n){if(void 0===b)return o(k);if(P)return b=setTimeout(u,t),r(k)}return void 0===b&&(b=setTimeout(u,t)),y}var v,m,g,y,b,k,O=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,g=P?E(a(n.maxWait)||0,t):g,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return g.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),m=n(9),g=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),k=n(216),O=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(O.a)(e)&&n.i(O.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(O.c)(this.file,P.a)&&n.i(O.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(O.c)(this.file,P.a)&&n.i(_.b)(n.i(O.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new g.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(k.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(O.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(O.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(O.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(O.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("Üzgünüz, ön görüntüleme yüklenmedi. Lütfen sayfayı yenileyin."))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(O.c)(this.file,P.d))throw new Error("Üzgünüz, bu dosyayı ön görüntüleme izniniz yok.");n.i(O.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(O.c)(this.file,P.a)&&this.options.showDownload&&!m.a.isMobile()&&(n.i(C.f)(this.download),n.i(O.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(O.c)(this.file,P.e)&&!m.a.isMobile()&&n.i(O.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("Üzgünüz, ön görüntüleme yüklenmedi. Lütfen sayfayı yenileyin."));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"Üzgünüz, ön görüntüleme yüklenmedi. Bu dosya türü desteklenmiyor olabilir.",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=m.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(k.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(O.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(O.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"Tamam",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),m=n(122),g=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),k=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){g.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(m.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                          \n
                                          \n \n \n \n
                                          \n
                                          \n
                                          \n \n
                                          \n \n \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n \n
                                          \n \n \n
                                          \n
                                          \n
                                          \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} vurgulandı",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=m(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-g,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+g);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],m=c[3],g=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,m),n.lineTo(g,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-g,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+g),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],m=r[5],g=r[6],y=r[7];return p.k([[c,u],[h,d],[v,m],[g,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-g;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+m+"px"}}}]),t}(c.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("Üzgünüz, tarayıcınız {1} dosya türü için ön görüntülemeyi desteklemiyor.",["360 derece görüntüler"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||g,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===g&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("Üzgünüz, tarayıcınız {1} dosya türü için ön görüntülemeyi desteklemiyor.",["3D modeller"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),m=n(9),g=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=g({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),m.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=k*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("Üzgünüz, bu dosya formatı desteklenmiyor."))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=m.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=m.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("Üzgünüz, tarayıcınız {1} dosya türü için ön görüntülemeyi desteklemiyor.",["360 derece videolar"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(g);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(g)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+m;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                          \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-m)/e,a=(r-g)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("Sayfa numarası girmek için tıklayın",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Sonraki sayfa",this.nextPage,"bp-doc-next-page-icon bp-next-page",m.v),this.controls.add("Tam ekrana geç",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Tam ekrandan çık",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),m=n(6),g=n(313),y=(n.n(g),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("Uzaklaştır",this.zoomOut,"bp-exit-zoom-out-icon",m.m),this.controls.add("Yakınlaştır",this.zoomIn,"bp-enter-zoom-in-icon",m.n),this.controls.add("Önceki sayfa",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",m.u);var e=d.a.replace(/>\s*<");this.controls.add("Sayfa numarası girmek için tıklayın",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("Sonraki sayfa",this.nextPage,"bp-presentation-next-page-icon bp-next-page",m.v),this.controls.add("Tam ekrana geç",this.toggleFullscreen,"bp-enter-fullscreen-icon",m.d),this.controls.add("Tam ekrandan çık",this.toggleFullscreen,"bp-exit-fullscreen-icon",m.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=k},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k},l=a>=1;switch(e){case"in":l?t=r*O:n=o*O;break;case"out":l?t=r/O:n=o/O;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Sola döndür",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("Tam ekrana geç",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("Tam ekrandan çık",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(m.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-k,height:this.wrapperEl.clientHeight-k};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("Tam ekrana geç",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("Tam ekrandan çık",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;g.Preview=g.Preview||{},g.Preview.MultiImage=y,e.Box=g,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                          ',k=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(m.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"Oynat"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"Sesi Aç"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"Tam ekrana geç"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"Ayarlar"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),g(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"Ortam Ayarlayıcısı",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"Ses Düzeyi Ayarlayıcısı",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"Tam ekrandan çık":"Tam ekrana geç";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"Duraklat")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"Oynat")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"Sesi Kapat":"Sesi Aç";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("Üzgünüz, tarayıcınız {1} dosya türü için ön görüntülemeyi desteklemiyor.",["360 derece videolar"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(m),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(m),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                          \n
                                          Hız
                                          \n
                                          Normal
                                          \n
                                          '+p.s+'
                                          \n
                                          \n
                                          \n
                                          Kalite
                                          \n
                                          Otomatik
                                          \n
                                          '+p.s+'
                                          \n
                                          \n
                                          \n
                                          '+p.t+'
                                          \n
                                          Hız
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          0.25
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          0.5
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          Normal
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          1.25
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          1.5
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          2.0
                                          \n
                                          \n
                                          \n
                                          '+p.t+'
                                          \n
                                          Kalite
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          480p
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          1080p
                                          \n
                                          \n
                                          \n
                                          '+p.l+'
                                          \n
                                          Otomatik
                                          \n
                                          \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+m).classList.remove(m),n.classList.add(m)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(g),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(g),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),m=function(){function e(e,t){for(var n=0;n\n
                                          \n
                                          ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ye="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",Ze="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ye]=at[Ke]=at[Je]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ze]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,mt=ct["__core-js_shared__"],gt=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,kt=ct.Symbol,Ot=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=kt?kt.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=m,f.prototype.get=g,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=k,E.prototype.has=O,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=me}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function m(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function g(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)m(o,t,n++,r),a.push(o);return i&&g(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var g={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,m,g,y=o.length;y-- >0;){if(g=o[y].split("$"),f=new s(+g[0],+g[1]),v=g[4]||null,h&&(m=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,m),m)),!(d=this.classAppliers[g[3]]))throw new Error("No class applier found for class '"+g[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(g[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(g)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=m(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=m(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                          \n
                                          \n \n \n
                                          \n \n \n \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n \n
                                          \n
                                          \n \n
                                          \n
                                          \n
                                          \n \n \n
                                          \n'},function(e,t){e.exports='
                                          \n
                                          \n
                                          \n \n
                                          \n
                                          \n \n
                                          \n
                                          \n
                                          \n \n  / \n \n \n \n
                                          \n
                                          \n'},function(e,t){e.exports='
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n {{accessibilityText}}\n
                                          \n
                                          \n
                                          \n
                                          \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/tr-TR/src/lib/loadingIcon.gif b/dist/0.112.0/tr-TR/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/zh-CN/csv.js b/dist/0.112.0/zh-CN/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/zh-CN/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                          "],c=[3,"","
                                          "],d=[1,'',""],p={"*":[1,"?
                                          ","
                                          "],area:[1,"",""],col:[2,"","
                                          "],legend:[1,"
                                          ","
                                          "],param:[1,"",""],tr:[2,"","
                                          "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                          ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/zh-CN/preview.js b/dist/0.112.0/zh-CN/preview.js deleted file mode 100644 index 727463998..000000000 --- a/dist/0.112.0/zh-CN/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('个人资料').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                          '+i+"
                                          ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                          \n
                                          \n
                                          '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                          ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                          \n

                                          \n
                                          \n \n
                                          \n
                                          \n
                                          \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"确定",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                          \n
                                          \n
                                          \n \n
                                          \n \n \n
                                          \n
                                          \n
                                          \n
                                          \n
                                          \n \n
                                          \n \n \n
                                          \n
                                          \n
                                          \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"正在发布...":h.h(e.user.name)||"某位用户";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                          '+r+'
                                          \n
                                          \n
                                          '+n+'
                                          \n
                                          '+o+'
                                          \n
                                          \n
                                          '+a+'
                                          \n \n
                                          \n
                                          \n 删除此注释?\n
                                          \n
                                          \n \n \n
                                          \n
                                          ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                          \n \n
                                            \n
                                            \n \n
                                            ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("点击任意位置均可向该文档添加评论"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="抱歉,无法为此文件加载批注。";break;case"create":n="抱歉,无法创建批注。",e.showAnnotations();break;case"delete":n="抱歉,无法删除批注。",e.showAnnotations();break;case"authorization":n="您的会话已过期。请刷新页面。"}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="正在生成预览...";e.querySelector(m.A).textContent="下载文件"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="上一个文件",i.title="下一个文件",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                                            \n
                                            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("正在准备打印...","打印",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="已准备好打印。",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="抱歉,预览未加载。此文档可能受保护。"),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("正在准备打印...","打印",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                            \n
                                            \n
                                            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="已准备好打印。",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="由于大小限制,此文件已被截短。请下载以查看完整文件。";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="下载文件",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("抱歉,预览未加载。请刷新页面。"))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("抱歉,您无权预览此文件。");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("抱歉,预览未加载。请刷新页面。"));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"抱歉,预览未加载。此文件类型可能不受支持。",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"确定",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                            \n
                                            \n \n \n \n
                                            \n
                                            \n
                                            \n \n
                                            \n \n \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n \n
                                            \n \n \n
                                            \n
                                            \n
                                            \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("{1} 突出显示",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("抱歉,您的浏览器不支持预览 {1}。",["360 度图像"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("抱歉,您的浏览器不支持预览 {1}。",["3D 模型"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("抱歉,此文件格式不受支持。"))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("抱歉,您的浏览器不支持预览 {1}。",["360 度视频"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                            \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("单击以输入页码",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("下一页",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("进入全屏",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("退出全屏",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("缩小",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("放大",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("上一页",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("单击以输入页码",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("下一页",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("进入全屏",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("退出全屏",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("向左旋转",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("进入全屏",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("退出全屏",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("进入全屏",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("退出全屏",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                            ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"播放"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"静音"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"进入全屏"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"设置"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"媒体滑块",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"音量滑块",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"退出全屏":"进入全屏";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"暂停")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"播放")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"取消静音":"静音";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("抱歉,您的浏览器不支持预览 {1}。",["360 度视频"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                            \n
                                            速度
                                            \n
                                            正常
                                            \n
                                            '+p.s+'
                                            \n
                                            \n
                                            \n
                                            质量
                                            \n
                                            自动
                                            \n
                                            '+p.s+'
                                            \n
                                            \n
                                            \n
                                            '+p.t+'
                                            \n
                                            速度
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            0.25
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            0.5
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            正常
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            1.25
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            1.5
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            2.0
                                            \n
                                            \n
                                            \n
                                            '+p.t+'
                                            \n
                                            质量
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            480p
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            1080p
                                            \n
                                            \n
                                            \n
                                            '+p.l+'
                                            \n
                                            自动
                                            \n
                                            \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                                            \n
                                            ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                            \n
                                            \n \n \n
                                            \n \n \n \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n \n
                                            \n
                                            \n \n
                                            \n
                                            \n
                                            \n \n \n
                                            \n'},function(e,t){e.exports='
                                            \n
                                            \n
                                            \n \n
                                            \n
                                            \n \n
                                            \n
                                            \n
                                            \n \n  / \n \n \n \n
                                            \n
                                            \n'},function(e,t){e.exports='
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n {{accessibilityText}}\n
                                            \n
                                            \n
                                            \n
                                            \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/zh-CN/src/lib/loadingIcon.gif b/dist/0.112.0/zh-CN/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/zh-TW/csv.js b/dist/0.112.0/zh-TW/csv.js deleted file mode 100644 index 3f2cd1fb7..000000000 --- a/dist/0.112.0/zh-TW/csv.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(m),g=0;g1){for(var y=Array(_),C=0;C<_;C++)y[C]=arguments[C+2];d.children=y}return c(e.type,p,f,h,m,v,d)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},e.exports=c},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(84);e.exports=function(e){return Object(o(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},,function(e,t,n){"use strict";e.exports=n(385)},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,d[e[m]]={}),d[e[m]]}var r,i=n(7),a=n(102),l=n(400),s=n(166),u=n(433),c=n(113),d={},p=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),i=a.registrationNameDependencies[e],l=0;l]/;e.exports=r},function(e,t,n){"use strict";var o,r=n(17),i=n(101),a=/^[ \r\n\t\f]/,l=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(109),u=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML=""+t+"";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&l.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";var o=n(180);n.d(t,"b",function(){return o.a}),n.d(t,"a",function(){return o.a});n(181)},,,,,,,function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,n){var o=n(56),r=n(286),i=n(85),a=n(93)("IE_PROTO"),l=function(){},s="prototype",u=function(){var e,t=n(139)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;o--;)delete u[s][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(66),r=n(67),i=n(31),a=n(96),l=n(37),s=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(35)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(36),r=n(19),i=n(42);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var o=n(38).f,r=n(37),i=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(94)("keys"),r=n(69);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(30),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(57);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(30),r=n(19),i=n(87),a=n(98),l=n(38).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function r(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a-1||a("96",e),!u.plugins[n]){t.extractEvents||a("97",e),u.plugins[n]=t;var o=t.eventTypes;for(var i in o)r(o[i],t,i)||a("98",i,e)}}}function r(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),u.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];i(l,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),l=(n(2),null),s={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){l&&a("101"),l=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a("102",n),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=u.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){l=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=u.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=u},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function l(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(e,t){var n=l.get(e);if(!n){return null}return n}var a=n(4),l=(n(28),n(61)),s=(n(21),n(23)),u=(n(2),n(3),{isMounted:function(e){var t=l.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=i(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],o(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,r(e))}});e.exports=u},function(e,t,n){"use strict";var o=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=o},function(e,t,n){"use strict";function o(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=o},function(e,t,n){"use strict";function o(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=i[e];return!!o&&!!n[o]}function r(e){return o}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(17);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t,n){"use strict";function o(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,i=typeof t;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=o},function(e,t,n){"use strict";var o=(n(7),n(20)),r=(n(3),o);e.exports=r},function(e,t,n){"use strict";var o={ASC:"ASC",DESC:"DESC"};t.a=o},function(e,t,n){"use strict";function o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,a=i()(r),l=!e||a.every(function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0}),s=a.length!==i()(t).length||a.some(function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o});t=r,l&&s&&o(r)}}var r=n(135),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var r=n(52),i=n(119),a=(n(199),n(58));n(2),n(3);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=o},function(e,t,n){"use strict";function o(e,t){}var r=(n(3),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){e.exports={default:n(271),__esModule:!0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(265),i=o(r),a=n(264),l=o(a),s="function"==typeof l.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"==typeof l.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(57),r=n(30).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=!n(35)&&!n(42)(function(){return 7!=Object.defineProperty(n(139)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var o=n(87),r=n(36),i=n(146),a=n(43),l=n(37),s=n(86),u=n(281),c=n(92),d=n(144),p=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,_,y,C){u(n,t,g);var S,b,w,x=function(e){if(!f&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",E=_==m,R=!1,k=e.prototype,I=k[p]||k["@@iterator"]||_&&k[_],M=I||x(_),P=_?E?x("entries"):M:void 0,O="Array"==t?k.entries||I:I;if(O&&(w=d(O.call(new e)))!==Object.prototype&&(c(w,T,!0),o||l(w,p)||a(w,p,v)),E&&I&&I.name!==m&&(R=!0,M=function(){return I.call(this)}),o&&!C||!f&&!R&&k[p]||a(k,p,M),s[t]=M,s[T]=v,_)if(S={values:E?M:x(m),keys:y?M:x(h),entries:P},C)for(b in S)b in k||i(k,b,S[b]);else r(r.P+r.F*(f||R),t,S);return S}},function(e,t,n){var o=n(145),r=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(37),r=n(68),i=n(93)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(37),r=n(31),i=n(277)(!1),a=n(93)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=a&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(43)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var r=n(306),i=o(r),a=void 0;e.exports=t.default},function(e,t,n){"use strict";var o=n(20),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e){try{e.focus()}catch(e){}}e.exports=o},function(e,t,n){"use strict";function o(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=o},,,function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&l())}function l(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v1)for(var n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,l=v.createElement(U,{child:t});if(e){var s=b.get(e);a=s._processChildContext(s._context)}else a=R;var c=p(n);if(c){if(M(c._currentElement.props.child,t)){var d=c._renderedComponent.getPublicInstance(),h=o&&function(){o.call(d)};return F._updateRootComponent(c,l,a,n,h),d}F.unmountComponentAtNode(n)}var m=r(n),g=m&&!!i(m),_=u(n),y=g&&!c&&!_,C=F._renderNewRootComponent(l,n,y,a)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)||f("40");var t=p(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete L[t._instance.rootID],E.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)||f("41"),i){var l=r(t);if(w.canReuseMarkup(e,l))return void _.precacheNode(n,l);var s=l.getAttribute(w.CHECKSUM_ATTR_NAME);l.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=l.outerHTML;l.setAttribute(w.CHECKSUM_ATTR_NAME,s);var d=e,p=o(d,u),m=" (client) "+d.substring(p-20,p+20)+"\n (server) "+u.substring(p-20,p+20);t.nodeType===N&&f("42",m)}if(t.nodeType===N&&f("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else I(t,e),_.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var o=n(4),r=n(50),i=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o("26",e)}});e.exports=i},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";function o(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(4);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(165);e.exports=o},function(e,t,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(17),i=null;e.exports=o},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var l=e,s=l.type;if("function"!=typeof s&&"string"!=typeof s){var p="";p+=o(l._owner),a("130",null==s?s:typeof s,p)}"string"==typeof l.type?n=c.createInternalComponent(l):r(l.type)?(n=new l.type(l),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(l)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),l=n(7),s=n(384),u=n(160),c=n(162),d=(n(431),n(2),n(3),function(e){this.construct(e)});l(d.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=o},function(e,t,n){"use strict";var o=n(17),r=n(75),i=n(76),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0&&o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=l>=0&&r<=l,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,i=this.props;o>1&&this._updateScrollLeftForScrollToColumn(r()({},i,{scrollToColumn:t})),this._updateScrollTopForScrollToRow(r()({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.scrollLeft,o=e.scrollToColumn,r=e.scrollTop,i=e.scrollToRow;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),(o>=0||i>=0)&&(this._updateScrollLeftForScrollToColumn(),this._updateScrollTopForScrollToRow()),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()})}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,a=r.columnCount,l=r.height,s=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,p=r.width,f=this.state,h=f.scrollLeft,m=f.scrollPositionChangeReason,v=f.scrollTop;this._handleInvalidatedGridSize();var g=a>0&&0===e.columnCount||s>0&&0===e.rowCount;if(m===T.REQUESTED&&(h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||g)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==t.scrollTop&&v!==this._scrollingContainer.scrollTop||g)&&(this._scrollingContainer.scrollTop=v)),this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:u,scrollToIndex:c,size:p,updateScrollIndexCallback:function(e){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n.i(w.a)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:u,scrollToIndex:d,size:l,updateScrollIndexCallback:function(e){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=this._rowSizeAndPositionManager.getTotalSize(),y=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:y,totalRowsHeight:_})}}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,o=this.state,r=o.scrollLeft,i=o.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==i)this._setScrollPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var a={};null!=e.scrollLeft&&(a.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(a.scrollTop=e.scrollTop),this._setScrollPosition(a)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var l=this.props,s=l.columnCount,u=l.rowCount;0!==s&&0!==u||(s=0,u=0),n.i(y.a)({cellCount:s,cellSize:this.props.columnWidth,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:e.columnWidth,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),n.i(y.a)({cellCount:u,cellSize:this.props.rowHeight,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:e.rowHeight,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.className,i=e.containerStyle,a=e.height,l=e.id,s=e.noContentRenderer,u=e.role,c=e.style,d=e.tabIndex,p=e.width,f=this.state.isScrolling,h={boxSizing:"border-box",direction:"ltr",height:n?"auto":a,position:"relative",width:p,WebkitOverflowScrolling:"touch",willChange:"transform"},m=this._columnSizeAndPositionManager.getTotalSize(),g=this._rowSizeAndPositionManager.getTotalSize(),y=g>a?this._scrollbarSize:0,C=m>p?this._scrollbarSize:0;h.overflowX=m+y<=p?"hidden":"auto",h.overflowY=g+C<=a?"hidden":"auto";var S=this._childrenToDisplay,b=0===S.length&&a>0&&p>0;return v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Grid",o),id:l,onScroll:this._onScroll,role:u,style:r()({},h,c),tabIndex:d},S.length>0&&v.a.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",style:r()({width:t?"auto":m,height:g,maxWidth:m,maxHeight:g,overflow:"hidden",pointerEvents:f?"none":"",position:"relative"},i)},S),b&&s())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,p=t.isScrolling,f=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.scrollLeft,v=t.scrollTop;if(this._childrenToDisplay=[],a>0&&d>0){var g=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:m}),_=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),y=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:m}),C=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var S=s({cellCount:r,overscanCellsCount:l,scrollDirection:f,startIndex:this._renderedColumnStartIndex,stopIndex:this._renderedColumnStopIndex}),b=s({cellCount:c,overscanCellsCount:u,scrollDirection:h,startIndex:this._renderedRowStartIndex,stopIndex:this._renderedRowStopIndex});this._columnStartIndex=S.overscanStartIndex,this._columnStopIndex=S.overscanStopIndex,this._rowStartIndex=b.overscanStartIndex,this._rowStopIndex=b.overscanStopIndex,this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:y,isScrolling:p,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:m,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:g,visibleRowIndices:_})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(this._debounceScrollEndedCallback,e)}},{key:"_debounceScrollEndedCallback",value:function(){this._disablePointerEventsTimeoutId=null;var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var o=t+"-"+n;this._styleCache[o]=e[o]}this.setState({isScrolling:!1})}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnGridRenderedHelper",value:function(){var e=this.props.onSectionRendered;this._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:this._columnStartIndex,columnOverscanStopIndex:this._columnStopIndex,columnStartIndex:this._renderedColumnStartIndex,columnStopIndex:this._renderedColumnStopIndex,rowOverscanStartIndex:this._rowStartIndex,rowOverscanStopIndex:this._rowStopIndex,rowStartIndex:this._renderedRowStartIndex,rowStopIndex:this._renderedRowStopIndex}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:T.REQUESTED};t>=0&&(o.scrollDirectionHorizontal=t>this.state.scrollLeft?b.a:b.b,o.scrollLeft=t),n>=0&&(o.scrollDirectionVertical=n>this.state.scrollTop?b.a:b.b,o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_wrapPropertyGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_wrapSizeGetter",value:function(e){return this._wrapPropertyGetter(e)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft;if(i>=0&&n>0){var s=Math.max(0,Math.min(n-1,i)),u=this._rowSizeAndPositionManager.getTotalSize(),c=u>o?this._scrollbarSize:0,d=this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollLeft:d})}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop;if(i>=0&&o>0){var s=Math.max(0,Math.min(o-1,i)),u=this._columnSizeAndPositionManager.getTotalSize(),c=u>a?this._scrollbarSize:0,d=this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-c,currentOffset:l,targetIndex:s});l!==d&&this._setScrollPosition({scrollTop:d})}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer&&!(e.target.scrollTop<0)){this._debounceScrollEnded();var t=this.props,n=t.autoHeight,o=t.height,r=t.width,i=this._scrollbarSize,a=this._rowSizeAndPositionManager.getTotalSize(),l=this._columnSizeAndPositionManager.getTotalSize(),s=Math.min(Math.max(0,l-r+i),e.target.scrollLeft),u=Math.min(Math.max(0,a-o+i),e.target.scrollTop);if(this.state.scrollLeft!==s||this.state.scrollTop!==u){var c=s>this.state.scrollLeft?b.a:b.b,d=u>this.state.scrollTop?b.a:b.b,p={isScrolling:!0,scrollDirectionHorizontal:c,scrollDirectionVertical:d,scrollLeft:s,scrollPositionChangeReason:T.OBSERVED};n||(p.scrollTop=u),this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:s,scrollTop:u,totalColumnsWidth:l,totalRowsHeight:a})}}}]),t}(m.PureComponent);E.defaultProps={"aria-label":"grid",cellRangeRenderer:x.a,estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:n(147),noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},overscanColumnCount:0,overscanIndicesGetter:b.c,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},t.a=E},function(e,t,n){"use strict";function o(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,u=e.parent,c=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,f=(e.scrollLeft,e.scrollTop,e.styleCache),h=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,g=void 0!==a,_=[],y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!s||!y,S=d;S<=p;S++)for(var b=c.getSizeAndPositionOfCell(S),w=r;w<=i;w++){var x=o.getSizeAndPositionOfCell(w),T=w>=m.start&&w<=m.stop&&S>=v.start&&S<=v.stop,E=S+"-"+w,R=void 0;C&&f[E]?R=f[E]:g&&!a.has(S,w)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:b.size,left:x.offset+l,position:"absolute",top:b.offset+h,width:x.size},f[E]=R);var k={columnIndex:w,isScrolling:s,isVisible:T,key:E,parent:u,rowIndex:S,style:R},I=void 0;!s||l||h?I=n(k):(t[E]||(t[E]=n(k)),I=t[E]),null!=I&&I!==!1&&_.push(I)}return _}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,o=e.startIndex,r=e.stopIndex;return!(o>n||r0;){var f=p.startIndex-1;if(t({index:f}))break;p.startIndex=f}return a}function i(e){var t="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;t?t.call(e):e.forceUpdate()}var a=n(14),l=n.n(a),s=n(10),u=n.n(s),c=n(12),d=n.n(c),p=n(16),f=n.n(p),h=n(15),m=n.n(h),v=n(11),g=(n.n(v),n(117)),_=function(e){function t(e,o){u()(this,t);var r=f()(this,(t.__proto__||l()(t)).call(this,e,o));return r._loadMoreRowsMemoizer=n.i(g.a)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return m()(t,e),d()(t,[{key:"resetLoadMoreRowsCache",value:function(){this._loadMoreRowsMemoizer=n.i(g.a)()}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&i(t._registeredChild)})})}},{key:"_onRowsRendered",value:function(e){var t=this,n=e.startIndex,o=e.stopIndex,i=this.props,a=i.isRowLoaded,l=i.minimumBatchSize,s=i.rowCount,u=i.threshold;this._lastRenderedStartIndex=n,this._lastRenderedStopIndex=o;var c=r({isRowLoaded:a,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,n-u),stopIndex:Math.min(s-1,o+u)}),d=c.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){t._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15}},function(e,t,n){"use strict";var o=n(262),r=n.n(o),i=n(65),a=n.n(i),l=n(34),s=n.n(l),u=n(14),c=n.n(u),d=n(10),p=n.n(d),f=n(12),h=n.n(f),m=n(16),v=n.n(m),g=n(15),_=n.n(g),y=n(77),C=n(11),S=n.n(C),b=n(55),w=n.n(b),x=function(e){function t(e,n){p()(this,t);var o=v()(this,(t.__proto__||c()(t)).call(this,e,n));return o._cellRenderer=o._cellRenderer.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o}return _()(t,e),h()(t,[{key:"forceUpdateGrid",value:function(){this.Grid.forceUpdate()}},{key:"measureAllRows",value:function(){this.Grid.measureAllCells()}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=w()("ReactVirtualized__List",t);return S.a.createElement(y.b,s()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}},{key:"_cellRenderer",value:function(e){var t=e.rowIndex,n=e.style,o=a()(e,["rowIndex","style"]),i=this.props.rowRenderer;return r()(n,"width").writable&&(n.width="100%"),i(s()({index:t,style:n},o))}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}}]),t}(C.PureComponent);x.defaultProps={estimatedRowSize:30,noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";var o=n(34),r=n.n(o),i=n(65),a=n.n(i),l=n(14),s=n.n(l),u=n(10),c=n.n(u),d=n(12),p=n.n(d),f=n(16),h=n.n(f),m=n(15),v=n.n(m),g=n(11),_=n.n(g),y=n(77),C=20,S=function(e){function t(e,n){c()(this,t);var o=h()(this,(t.__proto__||s()(t)).call(this,e,n));return o.state={scrollLeft:0,scrollTop:0},o._deferredInvalidateColumnIndex=null,o._deferredInvalidateRowIndex=null,o._bottomLeftGridRef=o._bottomLeftGridRef.bind(o),o._bottomRightGridRef=o._bottomRightGridRef.bind(o),o._cellRendererBottomLeftGrid=o._cellRendererBottomLeftGrid.bind(o),o._cellRendererBottomRightGrid=o._cellRendererBottomRightGrid.bind(o),o._cellRendererTopRightGrid=o._cellRendererTopRightGrid.bind(o),o._columnWidthRightGrid=o._columnWidthRightGrid.bind(o),o._onScroll=o._onScroll.bind(o),o._rowHeightBottomGrid=o._rowHeightBottomGrid.bind(o),o._topLeftGridRef=o._topLeftGridRef.bind(o),o._topRightGridRef=o._topRightGridRef.bind(o),o}return v()(t,e),p()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),u=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(e,t){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,o=n.columnWidth,r=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;o===e.columnWidth&&r===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=a()(e,["onScroll","onSectionRendered","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var s=this.state,u=s.scrollLeft,c=s.scrollTop;return _.a.createElement("div",{style:this._containerOuterStyle},_.a.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(r()({},l,{scrollLeft:u}))),_.a.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(r()({},l,{scrollTop:c})),this._renderBottomRightGrid(r()({},l,{onScroll:t,onSectionRendered:n,scrollLeft:u,scrollToColumn:o,scrollToRow:i,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=a()(e,["rowIndex"]),o=this.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?_.a.createElement("div",{key:n.key,style:r()({},n.style,{height:C})}):i(r()({},n,{parent:this,rowIndex:t+l}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=a()(e,["columnIndex","rowIndex"]),i=this.props,l=i.cellRenderer,s=i.fixedColumnCount,u=i.fixedRowCount;return l(r()({},o,{columnIndex:t+s,parent:this,rowIndex:n+u}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=a()(e,["columnIndex"]),o=this.props,i=o.cellRenderer,l=o.columnCount,s=o.fixedColumnCount;return t===l-s?_.a.createElement("div",{key:n.key,style:r()({},n.style,{width:C})}):i(r()({},n,{columnIndex:t+s,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,o=n.columnCount,r=n.fixedColumnCount,i=n.columnWidth;return t===o-r?C:"function"==typeof i?i({index:t+r}):i}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,a=t.gridClassName,l=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,d=t.id,p=t.noRowsRenderer,f=t.rowClassName,h=t.rowStyle,m=t.scrollToIndex,g=t.style,y=t.width,S=this.state.scrollbarWidth,b=i?c:c-s,w="function"==typeof f?f({index:-1}):f,x="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.a.Children.toArray(n).forEach(function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=r()({},o,{overflow:"hidden"})}),_.a.createElement("div",{className:v()("ReactVirtualized__Table",o),id:d,role:"grid",style:g},!i&&u({className:v()("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:r()({},x,{height:s,overflow:"hidden",paddingRight:S,width:y})}),_.a.createElement(C.b,r()({},this.props,{autoContainerWidth:!0,className:v()("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:b,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:S,scrollToRow:m,style:r()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=t.props,s=l.cellDataGetter,u=l.cellRenderer,c=l.className,d=l.columnData,p=l.dataKey,f=s({columnData:d,dataKey:p,rowData:i}),h=u({cellData:f,columnData:d,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),m=this._cachedColumnStyles[n],g="string"==typeof h?h:null;return _.a.createElement("div",{key:"Row"+a+"-Col"+n,className:v()("ReactVirtualized__Table__rowColumn",c),style:m,title:g},h)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,a=o.headerStyle,l=o.onHeaderClick,s=o.sort,u=o.sortBy,c=o.sortDirection,d=t.props,p=d.dataKey,f=d.disableSort,h=d.headerRenderer,m=d.label,g=d.columnData,y=!f&&s,C=v()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:y}),S=this._getFlexStyleForColumn(t,a),b=h({columnData:g,dataKey:p,disableSort:f,label:m,sortBy:u,sortDirection:c}),x={};return(y||l)&&function(){var e=u!==p||c===w.a.DESC?w.a.ASC:w.a.DESC,n=function(t){y&&s({sortBy:p,sortDirection:e}),l&&l({columnData:g,dataKey:p,event:t})},o=function(e){"Enter"!==e.key&&" "!==e.key||n(e)};x["aria-label"]=t.props["aria-label"]||m||p,x.role="rowheader",x.tabIndex=0,x.onClick=n,x.onKeyDown=o}(),_.a.createElement("div",r()({},x,{key:"Header-Col"+n,className:C,style:S}),b)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,a=e.parent,l=e.style,s=this.props,u=s.children,c=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowMouseOver,f=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,g=s.rowRenderer,y=s.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof h?h({index:n}):h,b="function"==typeof y?y({index:n}):y,w=m({index:n}),x=_.a.Children.toArray(u).map(function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:a,rowData:w,rowIndex:n,scrollbarWidth:C})});return g({className:v()("ReactVirtualized__Table__row",S),columns:x,index:n,isScrolling:o,key:i,onRowClick:c,onRowDoubleClick:d,onRowMouseOver:p,onRowMouseOut:f,rowData:w,style:r()({},l,b,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C})})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",o=r()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:_.a.Children.toArray(n)).map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=n.i(y.findDOMNode)(this.Grid),t=e.clientWidth||0,o=e.offsetWidth||0,r=o-t;this.setState({scrollbarWidth:r})}}]),t}(g.PureComponent);x.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanRowCount:10,rowRenderer:S.a,headerRowRenderer:b.a,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellData;e.cellDataKey,e.columnData,e.rowData,e.rowIndex;return null==t?"":String(t)}t.a=o},function(e,t,n){"use strict";function o(e){var t=(e.columnData,e.dataKey),n=(e.disableSort,e.label),o=e.sortBy,r=e.sortDirection,l=o===t,s=[i.a.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return l&&s.push(i.a.createElement(a.a,{key:"SortIndicator",sortDirection:r})),s}var r=n(11),i=n.n(r),a=n(187);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.style;return i.a.createElement("div",{className:t,role:"row",style:o},n)}var r=n(11),i=n.n(r);t.a=o},function(e,t,n){"use strict";function o(e){var t=e.className,n=e.columns,o=e.index,r=(e.isScrolling,e.key),a=e.onRowClick,s=e.onRowDoubleClick,u=e.onRowMouseOver,c=e.onRowMouseOut,d=e.rowData,p=e.style,f={};return(a||s||u||c)&&(f["aria-label"]="row",f.tabIndex=0,a&&(f.onClick=function(e){return a({event:e,index:o,rowData:d})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:o,rowData:d})}),c&&(f.onMouseOut=function(e){return c({event:e,index:o,rowData:d})}),u&&(f.onMouseOver=function(e){return u({event:e,index:o,rowData:d})})),l.a.createElement("div",i()({},f,{className:t,key:r,role:"row",style:p}),n)}var r=n(34),i=n.n(r),a=n(11),l=n.n(a);t.a=o},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(16),c=n.n(u),d=n(15),p=n.n(d),f=n(11),h=(n.n(f),n(71)),m=n.n(h),v=n(195),g=n(457),_=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||r()(t)).call(this,e)),i="undefined"!=typeof window?n.i(g.a)(e.scrollElement||window):0;return o.state={height:i,isScrolling:!1,scrollTop:0},o._onResize=o._onResize.bind(o),o.__handleWindowScrollEvent=o.__handleWindowScrollEvent.bind(o),o.__resetIsScrolling=o.__resetIsScrolling.bind(o),o}return p()(t,e),s()(t,[{key:"updatePosition",value:function(e){var t=this.props.onResize,o=this.state.height;e=e||this.props.scrollElement||window,this._positionFromTop=n.i(g.b)(m.a.findDOMNode(this),e);var r=n.i(g.a)(e);o!==r&&(this.setState({height:r}),t({height:r}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement||window;this.updatePosition(e),n.i(v.a)(this,e),window.addEventListener("resize",this._onResize,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement||window,o=e.scrollElement||window;t!==o&&(this.updatePosition(o),n.i(v.b)(this,t),n.i(v.a)(this,o))}},{key:"componentWillUnmount",value:function(){n.i(v.b)(this,this.props.scrollElement||window),window.removeEventListener("resize",this._onResize,!1)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop;return e({height:t.height,isScrolling:n,scrollTop:o})}},{key:"_onResize",value:function(e){this.updatePosition()}},{key:"__handleWindowScrollEvent",value:function(e){var t=this.props.onScroll,o=this.props.scrollElement||window,r=Math.max(0,n.i(g.c)(o)-this._positionFromTop);this.setState({isScrolling:!0,scrollTop:r}),t({scrollTop:r})}},{key:"__resetIsScrolling",value:function(){this.setState({isScrolling:!1})}},{key:"scrollElement",get:function(){return this.props.scrollElement||window}}]),t}(f.PureComponent);_.defaultProps={onResize:function(){},onScroll:function(){}}},function(e,t,n){"use strict";function o(){d&&(d=null,document.body.style.pointerEvents=c,c=null)}function r(){o(),u.forEach(function(e){return e.__resetIsScrolling()})}function i(){d&&clearTimeout(d),d=setTimeout(r,p)}function a(e){e.currentTarget===window&&null==c&&(c=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i(),u.forEach(function(t){t.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent(e)})}function l(e,t){u.some(function(e){return e.scrollElement===t})||t.addEventListener("scroll",a),u.push(e)}function s(e,t){u=u.filter(function(t){return t!==e}),u.length||(t.removeEventListener("scroll",a),d&&(clearTimeout(d),o()))}t.a=l,t.b=s;var u=[],c=null,d=null,p=150},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function l(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),i(n,o&&o._source,t)}var s,u,c,d,p,f,h,m=n(52),v=n(28),g=(n(2),n(3),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var _=new Map,y=new Set;s=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},c=function(e){_.delete(e)},d=function(){return Array.from(_.keys())},p=function(e){y.add(e)},f=function(e){y.delete(e)},h=function(){return Array.from(y.keys())}}else{var C={},S={},b=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};s=function(e,t){C[b(e)]=t},u=function(e){return C[b(e)]},c=function(e){delete C[b(e)]},d=function(){return Object.keys(C).map(w)},p=function(e){S[b(e)]=!0},f=function(e){delete S[b(e)]},h=function(){return Object.keys(S).map(w)}}var x=[],T={onSetChildren:function(e,t){var n=u(e);n||m("144"),n.childIDs=t;for(var o=0;or&&ac;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var o=n(44),r=n(90),i=n(66);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,a=l[u++])&&t.push(a);return t}},function(e,t,n){e.exports=n(30).document&&document.documentElement},function(e,t,n){var o=n(137);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(88),r=n(67),i=n(92),a={};n(43)(a,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(44),r=n(31);e.exports=function(e,t){for(var n,i=r(e),a=o(i),l=a.length,s=0;l>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var o=n(69)("meta"),r=n(57),i=n(37),a=n(38).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(42)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&h.NEED&&s(e)&&!i(e,o)&&c(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){"use strict";var o=n(44),r=n(90),i=n(66),a=n(68),l=n(141),s=Object.assign;e.exports=!s||n(42)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,u=1,c=r.f,d=i.f;s>u;)for(var p,f=l(arguments[u++]),h=c?o(f).concat(c(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:s},function(e,t,n){var o=n(38),r=n(56),i=n(44);e.exports=n(35)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),l=a.length,s=0;l>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(31),r=n(143).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(57),r=n(56),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(138)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var o=n(95),r=n(84);e.exports=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s),i<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var o=n(95),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(95),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";var o=n(276),r=n(282),i=n(86),a=n(31);e.exports=n(142)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(36);o(o.S+o.F,"Object",{assign:n(285)})},function(e,t,n){var o=n(36);o(o.S,"Object",{create:n(88)})},function(e,t,n){var o=n(36);o(o.S+o.F*!n(35),"Object",{defineProperty:n(38).f})},function(e,t,n){var o=n(31),r=n(89).f;n(91)("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},function(e,t,n){var o=n(68),r=n(144);n(91)("getPrototypeOf",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(68),r=n(44);n(91)("keys",function(){return function(e){return r(o(e))}})},function(e,t,n){var o=n(36);o(o.S,"Object",{setPrototypeOf:n(288).set})},function(e,t){},function(e,t,n){"use strict";var o=n(289)(!0);n(142)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var o=n(30),r=n(37),i=n(35),a=n(36),l=n(146),s=n(284).KEY,u=n(42),c=n(94),d=n(92),p=n(69),f=n(45),h=n(98),m=n(97),v=n(283),g=n(278),_=n(280),y=n(56),C=n(31),S=n(96),b=n(67),w=n(88),x=n(287),T=n(89),E=n(38),R=n(44),k=T.f,I=E.f,M=x.f,P=o.Symbol,O=o.JSON,A=O&&O.stringify,N="prototype",z=f("_hidden"),L=f("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),F=c("symbols"),W=c("op-symbols"),H=Object[N],j="function"==typeof P,G=o.QObject,B=!G||!G[N]||!G[N].findChild,V=i&&u(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(H,t);o&&delete H[t],I(e,t,n),o&&e!==H&&I(H,t,o)}:I,q=function(e){var t=F[e]=w(P[N]);return t._k=e,t},K=j&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=S(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,z)&&e[z][t]&&(e[z][t]=!1),n=w(n,{enumerable:b(0,!1)})):(r(e,z)||I(e,z,b(1,{})),e[z][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,o=g(t=C(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},Q=function(e,t){return void 0===t?w(e):X(w(e),t)},$=function(e){var t=D.call(this,e=S(e,!0));return!(this===H&&r(F,e)&&!r(W,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,z)&&this[z][e])||t)},Z=function(e,t){if(e=C(e),t=S(t,!0),e!==H||!r(F,t)||r(W,t)){var n=k(e,t);return!n||!r(F,t)||r(e,z)&&e[z][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(C(e)),o=[],i=0;n.length>i;)r(F,t=n[i++])||t==z||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=M(n?W:C(e)),i=[],a=0;o.length>a;)!r(F,t=o[a++])||n&&!r(H,t)||i.push(F[t]);return i};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),r(this,z)&&r(this[z],e)&&(this[z][e]=!1),V(this,e,b(1,n))};return i&&B&&V(H,e,{configurable:!0,set:t}),q(e)},l(P[N],"toString",function(){return this._k}),T.f=Z,E.f=Y,n(143).f=x.f=J,n(66).f=$,n(90).f=ee,i&&!n(87)&&l(H,"propertyIsEnumerable",$,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=R(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=P(e)},keyFor:function(e){if(K(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!j,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),O&&a(a.S+a.F*(!j||u(function(){var e=P();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,A.apply(O,o)}}}),P[N][L]||n(43)(P[N],L,P[N].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){n(97)("asyncIterator")},function(e,t,n){n(97)("observable")},function(e,t,n){n(292);for(var o=n(30),r=n(43),i=n(86),a=n(45)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=o[u],d=c&&c.prototype;d&&!d[a]&&r(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e.replace(i,"ms-"))}var r=n(323),i=/^-ms-/;e.exports=o},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(333);e.exports=o},function(e,t,n){"use strict";function o(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1),"number"!=typeof t&&a(!1),0===t||t-1 in e||a(!1),"function"==typeof e.callee&&a(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o":"<"+e+">",l[e]=!a.firstChild),l[e]?p[e]:null}var r=n(17),i=n(2),a=r.canUseDOM?document.createElement("div"):null,l={},s=[1,'"],u=[1,"","
                                            "],c=[3,"","
                                            "],d=[1,'',""],p={"*":[1,"?
                                            ","
                                            "],area:[1,"",""],col:[2,"","
                                            "],legend:[1,"
                                            ","
                                            "],param:[1,"",""],tr:[2,"","
                                            "],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=d,l[e]=!0}),e.exports=o},function(e,t,n){"use strict";function o(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=o},function(e,t,n){"use strict";function o(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(i,"-ms-")}var r=n(330),i=/^ms-/;e.exports=o},function(e,t,n){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(332);e.exports=o},function(e,t,n){"use strict";function o(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=o},function(e,t,n){"use strict";var o=n(8),r=n(149),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return E.compositionStart;case"topCompositionEnd":return E.compositionEnd;case"topCompositionUpdate":return E.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===y}function l(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,o){var r,u;if(C?r=i(e):k?l(e,n)&&(r=E.compositionEnd):a(e,n)&&(r=E.compositionStart),!r)return null;w&&(k||r!==E.compositionStart?r===E.compositionEnd&&k&&(u=k.getData()):k=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(u)c.data=u;else{var d=s(n);null!==d&&(c.data=d)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==x?null:(R=!0,T);case"topTextInput":var n=t.data;return n===T&&R?null:n;default:return null}}function d(e,t){if(k){if("topCompositionEnd"===e||!C&&l(e,t)){var n=k.getData();return m.release(k),k=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return w?null:t.data;default:return null}}function p(e,t,n,o){var r;if(!(r=b?c(e,n):d(e,n)))return null;var i=g.getPooled(E.beforeInput,t,n,o);return i.data=r,f.accumulateTwoPhaseDispatches(i),i}var f=n(60),h=n(17),m=n(380),v=n(417),g=n(420),_=[9,13,27,32],y=229,C=h.canUseDOM&&"CompositionEvent"in window,S=null;h.canUseDOM&&"documentMode"in document&&(S=document.documentMode);var b=h.canUseDOM&&"TextEvent"in window&&!S&&!o(),w=h.canUseDOM&&(!C||S&&S>8&&S<=11),x=32,T=String.fromCharCode(x),E={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},R=!1,k=null,I={eventTypes:E,extractEvents:function(e,t,n,o){return[u(e,t,n,o),p(e,t,n,o)]}};e.exports=I},function(e,t,n){"use strict";var o=n(155),r=n(17),i=(n(21),n(324),n(426)),a=n(331),l=n(334),s=(n(3),l(function(e){return a(e)})),u=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];null!=r&&(n+=s(o)+":",n+=i(o,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var l=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),l)r[a]=l;else{var s=u&&o.shorthandPropertyExpansions[a];if(s)for(var d in s)r[d]="";else r[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=w.getPooled(R.change,I,e,x(e));y.accumulateTwoPhaseDispatches(t),b.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){k=e,I=t,k.attachEvent("onchange",r)}function l(){k&&(k.detachEvent("onchange",r),k=null,I=null)}function s(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(l(),a(t,n)):"topBlur"===e&&l()}function c(e,t){k=e,I=t,M=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",N),k.attachEvent?k.attachEvent("onpropertychange",p):k.addEventListener("propertychange",p,!1)}function d(){k&&(delete k.value,k.detachEvent?k.detachEvent("onpropertychange",p):k.removeEventListener("propertychange",p,!1),k=null,I=null,M=null,P=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,r(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function m(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&k&&k.value!==M)return M=k.value,I}function v(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}var _=n(59),y=n(60),C=n(17),S=n(8),b=n(23),w=n(27),x=n(112),T=n(113),E=n(172),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},k=null,I=null,M=null,P=null,O=!1;C.canUseDOM&&(O=T("change")&&(!document.documentMode||document.documentMode>8));var A=!1;C.canUseDOM&&(A=T("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return P.get.call(this)},set:function(e){M=""+e,P.set.call(this,e)}},z={eventTypes:R,extractEvents:function(e,t,n,r){var i,a,l=t?S.getNodeFromInstance(t):window;if(o(l)?O?i=s:a=u:E(l)?A?i=f:(i=m,a=h):v(l)&&(i=g),i){var c=i(e,t);if(c){var d=w.getPooled(R.change,c,n,r);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,l,t)}};e.exports=z},function(e,t,n){"use strict";var o=n(4),r=n(47),i=n(17),a=n(327),l=n(20),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||o("56"),t||o("57"),"HTML"===e.nodeName&&o("58"),"string"==typeof t){var n=a(t,l)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";var o=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=o},function(e,t,n){"use strict";var o=n(60),r=n(8),i=n(73),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},l={eventTypes:a,extractEvents:function(e,t,n,l){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(l.window===l)s=l;else{var u=l.ownerDocument;s=u?u.defaultView||u.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var p=n.relatedTarget||n.toElement;d=p?r.getClosestInstanceFromNode(p):null}else c=null,d=t;if(c===d)return null;var f=null==c?s:r.getNodeFromInstance(c),h=null==d?s:r.getNodeFromInstance(d),m=i.getPooled(a.mouseLeave,c,n,l);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,d,n,l);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,d),[m,v]}};e.exports=l},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(7),i=n(39),a=n(170);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,l),this._fallbackText}}),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(48),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,l=o.injection.HAS_POSITIVE_NUMERIC_VALUE,s=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|i,muted:r|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:r|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=u},function(e,t,n){"use strict";(function(t){function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,!0))}var r=n(49),i=n(171),a=(n(104),n(114)),l=n(174);n(3);void 0!==t&&n.i({NODE_ENV:"production",BABEL_ENV:"production"});var s={instantiateChildren:function(e,t,n,r){if(null==e)return null;var i={};return l(e,o,i),i},updateChildren:function(e,t,n,o,l,s,u,c,d){if(t||e){var p,f;for(p in t)if(t.hasOwnProperty(p)){f=e&&e[p];var h=f&&f._currentElement,m=t[p];if(null!=f&&a(h,m))r.receiveComponent(f,m,l,c),t[p]=f;else{f&&(o[p]=r.getHostNode(f),r.unmountComponent(f,!1));var v=i(m,!0);t[p]=v;var g=r.mountComponent(v,l,s,u,c,d);n.push(g)}}for(p in e)!e.hasOwnProperty(p)||t&&t.hasOwnProperty(p)||(f=e[p],o[p]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=s}).call(t,n(153))},function(e,t,n){"use strict";var o=n(100),r=n(390),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function o(e){}function r(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var l=n(4),s=n(7),u=n(50),c=n(106),d=n(28),p=n(107),f=n(61),h=(n(21),n(165)),m=n(49),v=n(58),g=(n(2),n(99)),_=n(114),y=(n(3),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var C=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,s){this._context=s,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,p=this._processContext(s),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(h)?this._compositeType=y.PureClass:this._compositeType=y.ImpureClass:(c=_,r(h,c),null===_||_===!1||u.isValidElement(_)||l("105",h.displayName||h.name||"Component"),_=new o(h),this._compositeType=y.StatelessFunctional);_.props=d,_.context=p,_.refs=v,_.updater=m,this._instance=_,f.set(_,this);var S=_.state;void 0===S&&(_.state=S=null),("object"!=typeof S||Array.isArray(S))&&l("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var b;return b=_.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,s):this.performInitialMount(c,t,n,e,s),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),b},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(e,t,n,o,r)}catch(l){o.rollback(a),this._instance.unstable_handleError(l),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(e,t,n,o,r)}return i},performInitialMount:function(e,t,n,o,r){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var l=h.getType(e);this._renderedNodeType=l;var s=this._instantiateReactComponent(e,l!==h.EMPTY);this._renderedComponent=s;var u=m.mountComponent(s,o,t,n,this._processChildContext(r),a);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes&&l("107",this.getName()||"ReactCompositeComponent");for(var r in t)r in n.childContextTypes||l("108",this.getName()||"ReactCompositeComponent",r);return s({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var i=this._instance;null==i&&l("136",this.getName()||"ReactCompositeComponent");var a,s=!1;this._context===r?a=i.context:(a=this._processContext(r),s=!0);var u=t.props,c=n.props;t!==n&&(s=!0),s&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,d,a):this._compositeType===y.PureClass&&(p=!g(u,c)||!g(i.state,d))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,i.props=c,i.state=d,i.context=a)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=s({},r?o[0]:n.state),a=r?1:0;a=0||null!=t.is}function h(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(4),v=n(7),g=n(373),_=n(375),y=n(47),C=n(101),S=n(48),b=n(157),w=n(59),x=n(102),T=n(72),E=n(158),R=n(8),k=n(391),I=n(392),M=n(159),P=n(395),O=(n(21),n(404)),A=n(409),N=(n(20),n(75)),z=(n(2),n(113),n(99),n(115),n(3),E),L=w.deleteListener,D=R.getNodeFromInstance,U=T.listenTo,F=x.registrationNameModules,W={string:!0,number:!0},H="style",j="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},B=11,V={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=v({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,i,t),i=k.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":I.mountWrapper(this,i,t),i=I.getHostProps(this,i);break;case"select":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}r(this,i);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===C.svg&&"foreignobject"===d)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var f,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var m=h.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",f=m.removeChild(m.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);R.precacheNode(this,f),this._flags|=z.hasCachedChildNodes,this._hostParent||b.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var _=y(f);this._createInitialChildren(e,i,o,_),p=_}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&q[this._tag]?S+"/>":S+">"+w+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(F.hasOwnProperty(o))r&&i(this,o,r,e);else{o===H&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=_.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?G.hasOwnProperty(o)||(a=b.createMarkupForCustomAttribute(o,r)):a=b.createMarkupForProperty(o,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+b.createMarkupForRoot()),n+=" "+b.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)o=N(i);else if(null!=a){var l=this.mountChildren(a,e,n);o=l.join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&y.queueHTML(o,r.__html);else{var i=W[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&y.queueText(o,i);else if(null!=a)for(var l=this.mountChildren(a,e,n),s=0;s"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";var o={useCreateElement:!0,useFiber:!1};e.exports=o},function(e,t,n){"use strict";var o=n(100),r=n(8),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);c.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=u.getNodeFromInstance(this),l=a;l.parentNode;)l=l.parentNode;for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),p=0;pt.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function l(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),i=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var l=u(e,r),s=u(e,i);if(l&&s){var d=document.createRange();d.setStart(l.node,l.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(s.node,s.offset)):(d.setEnd(s.node,s.offset),n.addRange(d))}}}var s=n(17),u=n(432),c=n(170),d=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?r:i,setOffsets:d?a:l};e.exports=p},function(e,t,n){"use strict";var o=n(4),r=n(7),i=n(100),a=n(47),l=n(8),s=n(75),u=(n(2),n(115),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(u.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,i=" react-text: "+r+" ",u=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(i),p=c.createComment(u),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(p)),l.precacheNode(this,d),this._closingComment=p,f}var h=s(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=l.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&o("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,l.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);return u.asap(o,this),n}var i=n(4),a=n(7),l=n(105),s=n(8),u=n(23),c=(n(2),n(3),{getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&i("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=l.getValue(t),o=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a&&i("92"),Array.isArray(s)&&(s.length<=1||i("93"),s=s[0]),a=""+s),null==a&&(a=""),o=a}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),o=l.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e||s("33"),"_hostNode"in t||s("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,i=t;i;i=i._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(s[u],"captured",i)}var s=n(4);n(2);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:l}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(7),i=n(23),a=n(74),l=n(20),s={initialize:l,close:function(){p.isBatchingUpdates=!1}},u={initialize:l,close:i.flushBatchedUpdates.bind(i)},c=[u,s];r(o.prototype,a,{getTransactionWrappers:function(){return c}});var d=new o,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,o,r,i):d.perform(e,null,t,n,o,r,i)}};e.exports=p},function(e,t,n){"use strict";function o(){w||(w=!0,_.EventEmitter.injectReactEventListener(g),_.EventPluginHub.injectEventPluginOrder(l),_.EventPluginUtils.injectComponentTree(p),_.EventPluginUtils.injectTreeTraversal(h),_.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:S,BeforeInputEventPlugin:i}),_.HostComponent.injectGenericComponentClass(d),_.HostComponent.injectTextComponentClass(m),_.DOMProperty.injectDOMPropertyConfig(r),_.DOMProperty.injectDOMPropertyConfig(u),_.DOMProperty.injectDOMPropertyConfig(C),_.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),_.Updates.injectReconcileTransaction(y),_.Updates.injectBatchingStrategy(v),_.Component.injectEnvironment(c))}var r=n(372),i=n(374),a=n(376),l=n(378),s=n(379),u=n(381),c=n(383),d=n(386),p=n(8),f=n(388),h=n(396),m=n(394),v=n(397),g=n(401),_=n(402),y=n(407),C=n(412),S=n(413),b=n(414),w=!1;e.exports={inject:o}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=o},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(59),i={handleTopLevel:function(e,t,n,i){o(r.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&o(r)}while(r);for(var i=0;i/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return i.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),o(e)===n}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:p.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){d.processChildrenUpdates(e,t)}var c=n(4),d=n(106),p=(n(61),n(21),n(28),n(49)),f=n(382),h=(n(20),n(428)),m=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,i){var a,l=0;return a=h(t,l),f.updateChildren(e,a,n,o,r,this,this._hostContainerInfo,i,l),a},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],i=0;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a],s=0,u=p.mountComponent(l,t,this,this._hostContainerInfo,n,s);l._mountIndex=i++,r.push(u)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[l(e)])},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},i=[],a=this._reconcilerUpdateChildren(o,e,i,r,t,n);if(a||o){var l,c=null,d=0,f=0,h=0,m=null;for(l in a)if(a.hasOwnProperty(l)){var v=o&&o[l],g=a[l];v===g?(c=s(c,this.moveChild(v,m,d,f)),f=Math.max(v._mountIndex,f),v._mountIndex=d):(v&&(f=Math.max(v._mountIndex,f)),c=s(c,this._mountChildAtIndex(g,i[h],m,d,t,n)),h++),d++,m=p.getHostNode(g)}for(l in r)r.hasOwnProperty(l)&&(c=s(c,this._unmountChild(o[l],r[l])));c&&u(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex=t)return{node:n,offset:t-i};i=a}n=o(r(n))}}e.exports=i},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(l[e])return l[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return l[e]=t[n];return""}var i=n(17),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},l={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(75);e.exports=o},function(e,t,n){"use strict";var o=n(164);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";n(175)},function(e,t,n){"use strict";n(176)},function(e,t,n){"use strict";function o(e,t){return e+"-"+t}var r=n(10),i=n.n(r),a=n(12),l=n.n(a),s=30,u=100;!function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),this.columnWidth=function(e){var n=e.index,o=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(o)?t._columnWidthCache[o]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,o=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(o)?t._rowHeightCache[o]:t._defaultHeight};var r=n.defaultHeight,a=n.defaultWidth,l=n.fixedHeight,c=n.fixedWidth,d=n.keyMapper,p=n.minHeight,f=n.minWidth;this._hasFixedHeight=l===!0,this._hasFixedWidth=c===!0,this._minHeight=p||0,this._minWidth=f||0,this._keyMapper=d||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof a?a:u),this._columnCount=0,this._rowCount=0,this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}l()(e,[{key:"clear",value:function(e,t){var n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={}}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e,t){var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e,t){var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){for(var n=0,o=0;o=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,u=l.scrollPositionChangeReason,c=l.scrollTop;u===w.REQUESTED&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){this.props.cellLayoutManager.calculateSizeAndPositionData(),this._scrollbarSize=S()(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,o=t.scrollTop;0!==e.cellCount||0===n&&0===o?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,i=e.className,a=e.height,l=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,p=e.width,f=this.state,h=f.isScrolling,m=f.scrollLeft,g=f.scrollTop,y=o.getTotalSize(),C=y.height,S=y.width,b=Math.max(0,m-l),w=Math.max(0,g-d),x=Math.min(S,m+p+l),T=Math.min(C,g+a+d),E=a>0&&p>0?o.cellRenderers({height:T-w,isScrolling:h,width:x-b,x:b,y:w}):[],R={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},k=C>a?this._scrollbarSize:0,I=S>p?this._scrollbarSize:0;return R.overflowX=S+k<=p?"hidden":"auto",R.overflowY=C+I<=a?"hidden":"auto",v.a.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:_()("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:r()({},R,c),tabIndex:0},n>0&&v.a.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:C,maxHeight:C,maxWidth:S,overflow:"hidden",pointerEvents:h?"none":"",width:S}},E),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},b)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:w.REQUESTED};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,o=e.scrollToAlignment,r=e.scrollToCell,i=e.width,a=this.state,l=a.scrollLeft,s=a.scrollTop;if(r>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:r,height:n,scrollLeft:l,scrollTop:s,width:i});u.scrollLeft===l&&u.scrollTop===s||this._setScrollPosition(u)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,o=t.height,r=t.isScrollingChange,i=t.width,a=this._scrollbarSize,l=n.getTotalSize(),s=l.height,u=l.width,c=Math.max(0,Math.min(u-i+a,e.target.scrollLeft)),d=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==d){var p=e.cancelable?w.OBSERVED:w.REQUESTED;this.state.isScrolling||r(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:p,scrollTop:d})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:d,totalWidth:u,totalHeight:s})}}}]),t}(m.PureComponent);x.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.a=x},function(e,t,n){"use strict";var o=n(10),r=n.n(o),i=n(12),a=n.n(i),l=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(135),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(441),c=100,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return s()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,i=e.y,a={};return this.getSections({height:t,width:n,x:o,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),r()(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),s=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=a;d++)for(var p=l;p<=s;p++){var f=d+"."+p;this._sections[f]||(this._sections[f]=new u.a({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:p*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return r()(this._sections).length}},{key:"toString",value:function(){var e=this;return r()(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.a=d},function(e,t,n){"use strict";n(178)},function(e,t,n){"use strict";function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,i=[],a=new r.a(o),l=0,s=0,u=0;u=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell "+o+" of value "+r);null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a=this.getSizeAndPositionOfCell(i),l=a.offset,s=l-o+a.size,u=void 0;switch(n){case"start":u=l;break;case"end":u=s;break;case"center":u=l-(o-a.size)/2;break;default:u=Math.max(s,Math.min(l,r))}var c=this.getTotalSize();return Math.max(0,Math.min(c-o,u))}},{key:"getVisibleCellRange",value:function(e){if(this._batchAllCells)return{start:0,stop:this._cellCount-1};var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;no&&(t=r-1)}if(n>0)return n-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,o=1;t=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}]),e}();t.a=l},function(e,t,n){"use strict";var o=n(65),r=n.n(o),i=n(10),a=n.n(i),l=n(12),s=n.n(l),u=n(446),c=15e5,d=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?c:n,i=r()(t,["maxScrollSize"]);a()(this,e),this._cellSizeAndPositionManager=new u.a(i),this._maxScrollSize=o}return s()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex,a=e.totalSize;r=this._safeOffsetToOffset({containerSize:o,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i,totalSize:a});return this._offsetToSafeOffset({containerSize:o,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();t.a=d},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),s>=0&&s===l&&u())}t.a=o},function(e,t,n){"use strict";function o(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,a=e.startIndex,l=e.stopIndex,s=void 0,u=void 0;switch(o){case i:s=a,u=l+n;break;case r:s=a-n,u=l}return{overscanStartIndex:Math.max(0,s),overscanStopIndex:Math.min(t-1,u)}}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),t.c=o;var r=-1,i=1},function(e,t,n){"use strict";function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,p=e.updateScrollIndexCallback,f=n.getCellCount(),h=c>=0&&c0&&(dn.getTotalSize()-d&&p(f-1)}t.a=o},function(e,t,n){"use strict";n(182)},function(e,t,n){"use strict";n(183)},function(e,t,n){"use strict";n(184)},function(e,t,n){"use strict";n(185)},function(e,t,n){"use strict";n(188),n(189),n(190),n(192),n(191),n(193),n(186),n(116),n(187)},function(e,t,n){"use strict";n(194),n(195)},function(e,t,n){"use strict";function o(e){return e===window?"number"==typeof window.innerHeight?window.innerHeight:0:e.getBoundingClientRect().height}function r(e,t){var n=t===window?0:i(t),o=t===window?document.documentElement:t;return e.getBoundingClientRect().top+n-o.getBoundingClientRect().top}function i(e){return e===window?"scrollY"in window?window.scrollY:document.documentElement.scrollTop:e.scrollTop}t.a=o,t.b=r,t.c=i},function(e,t,n){"use strict";var o=(n(436),n(437),n(439),n(443),n(445),n(455),n(77));n.d(t,"a",function(){return o.a});n(451),n(452),n(453),n(454),n(456)},function(e,t,n){"use strict";function o(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,s=l-i+r;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-r)/2;default:return Math.max(s,Math.min(l,a))}}t.a=o},function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var t="undefined"!=typeof document&&document.attachEvent;if(!t){var n=function(){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){var t=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;return function(e){return t(e)}}(),r=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},a=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;r(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=n(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,s="",u="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="",f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(l=!0),l===!1)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="detectElementResize",n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}};return{addResizeListener:function(n,o){if(t)n.attachEvent("onresize",o);else{if(!n.__resizeTriggers__){var i=e.getComputedStyle(n);i&&"static"==i.position&&(n.style.position="relative"),_(),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=document.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='
                                            ',n.appendChild(n.__resizeTriggers__),r(n),n.addEventListener("scroll",a,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&r(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(o)}},removeResizeListener:function(e,n){if(t)e.detachEvent("onresize",n);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(n),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}t.a=o},function(e,t,n){"use strict";function o(e){var t=/[=:]/g,n={"=":"=0",":":"=2"};return"$"+(""+e).replace(t,function(e){return n[e]})}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:o,unescape:r};e.exports=i},function(e,t,n){"use strict";var o=n(52),r=(n(2),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},l=function(e,t,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n,o),i}return new r(e,t,n,o)},s=function(e){var t=this;e instanceof t||o("25"),e.destructor(),t.instancePool.length>"),R={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:l(),arrayOf:s,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};r.prototype=Error.prototype,e.exports=R},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||l}function r(){}var i=n(7),a=n(118),l=n(119),s=n(58);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,e.exports=o},function(e,t,n){"use strict";e.exports="15.4.2"},function(e,t,n){"use strict";function o(e){return i.isValidElement(e)||r("143"),e}var r=n(52),i=n(51);n(2);e.exports=o},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function r(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===l)return n(i,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+d;if(Array.isArray(e))for(var g=0;gdiv{cursor:default}.bp-doc .rangy-highlight{position:relative}.bp-quad-corner-container{bottom:0;left:0;position:absolute;right:0;top:0}.bp-quad-corner{background:none;height:0;position:absolute;width:0}.bp-quad-corner.corner1{bottom:0;left:0}.bp-quad-corner.corner2{bottom:0;right:0}.bp-quad-corner.corner3{right:0;top:0}.bp-quad-corner.corner4{left:0;top:0}.bp-annotation-highlight-label{padding-left:5px;padding-right:5px;width:100%}.bp-point-annotation-mode .bp-annotation-layer,.bp-point-annotation-mode .page,.bp-point-annotation-mode .textLayer>div,.bp-point-annotation-mode>img{cursor:crosshair}.bp-point-annotation-mode .textLayer .endOfContent,.bp-point-annotation-mode .textLayer>div{pointer-events:none}.bp-doc{bottom:0;height:100%;left:0;letter-spacing:normal;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bp-doc [hidden]{display:none!important}.bp-doc.is-safari{transform:translateZ(0)}.bp-doc.bp-is-scrollable{overflow:auto}.bp-doc .pdfViewer .page{border:0;border-image:none;box-sizing:content-box!important;margin:0 auto;padding:15px 0;position:relative}.bp-doc .pdfViewer .page .loadingIcon{background:none}.bp-loaded .bp-doc .pdfViewer .page .loadingIcon{background:url(src/lib/loadingIcon.gif) 50% no-repeat}.bp-doc .pdfViewer .page .textAnnotation>img{display:none}.bp-doc .textLayer{bottom:auto;top:15px}.bp-doc .textLayer>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bp-doc .textLayer .highlight{display:inline-block}.bp-doc .annotationLayer section{margin-top:15px}.bp-controls .bp-doc-page-num{min-width:48px;width:auto}.bp-controls .bp-doc-page-num span{display:inline;font-size:14px}.bp-controls .bp-doc-page-num-input{display:none;font-size:14px;margin:0 auto;text-align:center;width:44px}.bp-controls.show-page-number-input .bp-doc-page-num{opacity:1}.bp-controls.show-page-number-input .bp-doc-current-page,.bp-controls.show-page-number-input .bp-doc-page-num-divider,.bp-controls.show-page-number-input .bp-doc-total-pages{display:none}.bp-controls.show-page-number-input .bp-doc-page-num-input{display:block}.bp-print-notification{display:none;font-size:24px}@media print{.bp-doc{display:none}.bp-print-notification{display:block}}.bp-find-bar{background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;padding:6px;position:absolute;right:17px;top:0}.bp-find-bar ::-ms-clear{display:none}.bp-find-bar .bp-doc-find-field{border:1px solid rgba(0,0,0,.05);border-radius:2px 0 0 2px;box-shadow:0 1px 0 hsla(0,0%,100%,.05) rgba(0,0,0,.05);color:#494949;height:34px;line-height:20px;outline-style:none;padding:6px 6px 6px 25px;transition-duration:.15s;transition-property:background-color,border-color,box-shadow;transition-timing-function:ease;width:200px}.bp-find-bar .bp-doc-find-field:focus,.bp-find-bar .bp-doc-find-field:hover{border-color:#1992d4}.bp-find-bar .bp-doc-find-results-count{color:rgba(73,73,73,.25);cursor:default;line-height:1;margin:0;padding:0;position:absolute;right:120px;text-align:right;top:37%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-find-bar .bp-doc-find-close,.bp-find-bar .bp-doc-find-next,.bp-find-bar .bp-doc-find-prev,.bp-find-bar .bp-doc-find-search{background:none;border:1px solid #eaeaea;display:inline-block;height:34px;line-height:1;margin-top:-1px;vertical-align:middle;width:34px}.bp-find-bar .bp-doc-find-close .icon,.bp-find-bar .bp-doc-find-next .icon,.bp-find-bar .bp-doc-find-prev .icon,.bp-find-bar .bp-doc-find-search .icon{fill:rgba(73,73,73,.75)}.bp-find-bar .bp-doc-find-search{border:0;left:5px;line-height:1;margin:0;padding:6px;position:absolute;text-align:left;top:15%}.bp-find-bar .bp-doc-find-close{border:0;padding:6px}.bp-find-bar .bp-doc-find-close:hover .icon{fill:#494949}.bp-find-bar .bp-find-match-not-found,.bp-find-bar .bp-find-match-not-found:focus,.bp-find-bar .bp-find-match-not-found:hover{border-color:rgba(239,72,54,.5)}.textLayer{opacity:1}.textLayer .highlight{background-color:rgba(255,186,26,.5);border-radius:0}.textLayer .highlight.selected{background-color:rgba(90,237,168,.5)}.textLayer ::-moz-selection{background-color:rgba(0,0,255,.2)}.textLayer ::selection{background-color:rgba(0,0,255,.2)}.bp-doc.bp-doc-presentation{overflow:hidden}.bp-doc.bp-doc-presentation .pdfViewer .page{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.bp-doc.bp-doc-presentation.overflow-x{overflow-x:scroll}.bp-doc.bp-doc-presentation.overflow-y{overflow-y:scroll}.bp-doc.bp-doc-presentation.overflow-y .pdfViewer .page{margin-top:5px}.bp-box3d .bp-overlay span:active,.bp-box3d .bp-settings-wrapper .bp-settings-btn:active{opacity:1}.bp-box3d .bp-pullup{bottom:100%;padding:0 10px 20px;text-align:left}.bp-box3d .bp-settings-panel-row{display:block;margin-top:6px}.bp-box3d .bp-settings-panel-row:after,.bp-box3d .bp-settings-panel-row:before{content:"";display:table;line-height:0}.bp-box3d .bp-settings-panel-row:before{clear:both;padding-top:10px}.bp-box3d .bp-settings-panel-label{color:#767676;display:inline;line-height:1;margin:4px;white-space:nowrap}.bp-box3d .bp-panel-btn{border-radius:5px;cursor:pointer;height:34px;line-height:34px;overflow:hidden}.bp-box3d .bp-toggle-overlay .bp-menu{min-width:183px}.bp-box3d .bp-toggle-overlay .bp-btn{color:gray;font-size:13px;height:34px;letter-spacing:0;padding:5px 0 5px 10px;text-align:left;text-transform:none;width:100%}.bp-box3d .bp-toggle-overlay .bp-btn:after{border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #494949;content:"";height:0;position:absolute;right:11px;top:15px;width:0}.bp-box3d .bp-overlay-panel .bp-btn .bp-btn-primary{margin:6px 0 0}.bp-box3d .box3d-settings-axis-widget{border:1px solid #caccd0;border-bottom-width:2px;border-radius:2px;display:inline;padding-bottom:10px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-x{border-bottom-color:#e33d55}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-y{border-bottom-color:#26c281;margin-left:4px;margin-right:4px}.bp-box3d .box3d-settings-axis-widget.box3d-settings-axis-widget-z{border-bottom-color:#22a7f0}.bp-box3d .box3d-settings-axis-widget span{display:inline}.bp-box3d .box3d-settings-axis-widget .box3d-settings-axis-label{color:#444}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate{color:#1992d4;cursor:pointer;font-size:medium;padding:0 12px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after,.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-bottom:4px solid transparent;border-top:4px solid transparent;content:"";height:0;position:absolute;top:7px;width:0}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:after{border-right:5px solid #444;left:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:after{border-left:5px solid #444;right:10px}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:hover:after{border-right:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:hover:after{border-left:5px solid #888}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-left:active:after{border-right:5px solid #222}.bp-box3d .box3d-settings-axis-widget .box3d-setting-axis-rotate-right:active:after{border-left:5px solid #222}.bp-box3d .box3d-animation-clip-pullup{max-height:200px;overflow:auto}.bp-box3d .box3d-animation-clip{cursor:pointer;display:block;margin-top:6px;white-space:nowrap}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon{display:inline-block;width:24px}.bp-box3d .box3d-animation-clip .box3d-animation-clip-icon svg{height:16px;vertical-align:text-bottom}.bp-box3d .box3d-animation-clip .box3d-animation-clip-value{display:inline;max-width:183px;overflow-x:hidden;white-space:nowrap}.bp-error{color:#222;font-size:14px;text-align:center}.bp-error .bp-error-download{padding-top:20px}a,html{-webkit-font-smoothing:antialiased;text-shadow:1px 1px 1px hsla(0,0%,100%,.004)}body,button{font-family:Lato,Helvetica Neue,Helvetica,Arial,sans-serif}li{margin:0;padding:0}.bp-btn{border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;font-size:13px;line-height:10px;margin:5px;padding:10px 16px;position:relative;text-align:center;text-decoration:none;vertical-align:top;white-space:nowrap;zoom:1}.bp-btn.is-disabled{cursor:default;top:0}.bp-btn.is-disabled,.bp-btn.is-disabled:active,.bp-btn.is-disabled:focus,.bp-btn.is-disabled:hover{color:#666;border:1px solid #bdc3c7;box-shadow:none;opacity:.4;background-color:#fcfcfc}.bp-btn svg{pointer-events:none}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:hover{border:0;cursor:pointer;font-weight:400;height:auto;margin:0;padding:0;vertical-align:middle}.bp-btn-plain:active svg,.bp-btn-plain:hover svg,.bp-btn-plain svg{pointer-events:none}.bp-btn{-webkit-appearance:none;background-color:#fff;border:1px solid #bdc3c7;border-radius:2px;color:#464a4f;cursor:pointer;-webkit-font-smoothing:antialiased;font-weight:400;letter-spacing:1px;text-shadow:none;transition:background-color .05s ease-in-out,border-color .05s ease-in-out}.bp-btn:hover{background-color:#f7f7f7;text-decoration:none}.bp-btn:active,.bp-btn:active:focus{background-color:#ebebeb;border-color:#bdc3c7;outline:0}.bp-btn:focus{border-color:#96a0a6;box-shadow:0 1px 2px rgba(0,0,0,.1);outline:0;text-decoration:none}.bp-btn-primary{background-color:#1992d4;border-color:#1992d4;color:#fff;-webkit-font-smoothing:antialiased}.bp-btn-primary:focus,.bp-btn-primary:focus:hover{border-color:#1992d4;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.8),0 1px 2px rgba(0,0,0,.1);outline:0}.bp-btn-primary:hover{background-color:#2fa6e7;border-color:#2fa6e7}.bp-btn-primary:active,.bp-btn-primary:active:hover{background-color:#1579b0;border-color:#1579b0;box-shadow:none}.bp-btn-primary.is-disabled,.bp-btn-primary.is-disabled:active,.bp-btn-primary.is-disabled:focus,.bp-btn-primary.is-disabled:hover{color:#fff;border-color:#1992d4;background-color:#1992d4}.bp-btn-plain,.bp-btn-plain:active,.bp-btn-plain:focus,.bp-btn-plain:hover{background:transparent;box-shadow:none;outline:none}.bp-textarea{border:1px solid #bdc3c7;border-radius:2px;box-shadow:inset 0 1px 1px #e6e6e6;color:#464a4f;-webkit-font-smoothing:antialiased;transition:border-color .15s linear,box-shadow .1s linear}.bp-textarea:hover{box-shadow:inset 0 1px 1px #d9d9d9}.bp-textarea:focus{border:1px solid #1992d4;box-shadow:none;outline:0}.bp-overlay{background:#fff;border:1px solid #bdc3c7;box-shadow:0 2px 6px 0 rgba(0,0,0,.1);margin:0;opacity:0;padding:8px 0;pointer-events:none;position:absolute;transform:rotateY(-10deg) rotateX(-10deg);transform-origin:left top;transform-style:preserve-3d;transition:visibility 0s linear 75ms,opacity 75ms,transform .125s;visibility:hidden;z-index:90}.bp-link{color:#64686d;font-smoothing:antialiased;line-height:1.5em;overflow:hidden;text-decoration:none;text-overflow:ellipsis;text-shadow:1px 1px 1px rgba(0,0,0,.004);transition:color .05s}.bp-link,.bp-menu{white-space:nowrap}.bp-menu{list-style:none;margin:0;min-width:225px;padding:0}.bp-menu .link-group ul{margin:0}.bp-menu .link-group ul a{color:#494949;display:block;padding:5px 35px 5px 15px}.bp-menu .link-group ul a:hover{background:#f6fafd;color:#1a5976;fill:#1a5976;cursor:pointer}.bp-notifications-wrapper{height:0;left:0;position:fixed;right:0;top:0;z-index:130}.bp-notification{align-items:center;background-color:#464a4f;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#fff;display:flex;font-weight:700;margin:10px auto;max-width:572px;min-height:48px;padding:10px 10px 10px 20px;transition:opacity .1s ease-out;overflow:hidden}.bp-notification.info{background-color:#26c281}.bp-notification.warn{background-color:#f5b31b}.bp-notification.error{background-color:#ed3757}.bp-notification.is-hidden{box-shadow:none;opacity:0}.bp-notification>span{font-size:15px;padding-right:10px;margin-right:auto}.bp-notification.wrap>span{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}.bp-notification.ellipsis>span{overflow:hidden;text-overflow:ellipsis}.bp-notification a,.bp-notification button{color:#fff;flex:none}.bp-notification a.btn,.bp-notification a.btn:active:focus,.bp-notification button.btn,.bp-notification button.btn:active:focus{background-color:transparent;border-color:#eaeaea;margin:0 5px;padding:7px 13px}.bp-notification a.close-btn,.bp-notification button.close-btn{background:none;border:none;cursor:pointer;font-size:14px;font-weight:700;opacity:.6;outline:none}.bp-modal{align-items:center;bottom:0;display:flex;flex:1;left:0;overflow:hidden;padding:30px;position:fixed;right:0;top:0;z-index:160}.bp-modal-dialog{background-clip:padding-box;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.3);margin:auto;padding:30px;position:relative;width:460px}.bp-modal-header{display:flex;font-size:15px;font-weight:700}.bp-modal-title{display:inline-block;flex:1;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.bp-modal-content{margin-top:27px}.bp-modal-close-button{background:none;border:0;color:#999ea4;cursor:pointer;font-size:11px;font-weight:700;outline:0}.bp-modal-backdrop{background:#fff;bottom:0;filter:alpha(opacity=75);left:0;opacity:.75;right:0;top:0;z-index:-1}.bp-modal-actions{align-items:center;display:flex;justify-content:flex-end;text-align:right}.bp-modal-container{bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:89}.bp-is-hidden{display:none!important}.bp-container,.bp-container *{box-sizing:border-box!important}.bp-container{border:0 none;font-size:13px;height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.bp-container a{color:#ccc}.bp-header{align-items:center;background-color:#fff;border-bottom:1px solid #ccc;display:flex;height:48px;justify-content:space-between;padding:0 20px}.bp-header+.bp:not(.bp-is-fullscreen){top:48px}.bp-header .bp-custom-logo{max-height:30px}.bp-header .bp-default-logo svg{fill:#1992d4}.bp-header-btns button{padding:0 10px}.bp-header-btns button svg{fill:#6f6f6f;vertical-align:middle}.bp-header-btns button:hover{padding:0 10px}.bp-header-btns button:hover svg{fill:#494949}.bp-theme-dark .bp-header{background-color:rgba(0,0,0,.85);border-bottom:0}.bp-theme-dark .bp-header-btns button svg{fill:hsla(0,0%,100%,.9)}.bp-theme-dark .bp-default-logo svg,.bp-theme-dark .bp-header-btns button:hover svg{fill:#fff}.bp-theme-dark .bp{background-color:#464a4f}.bp-theme-dark .bp-btn-loading-download,.bp-theme-dark .bp-error,.bp-theme-dark .bp-loading-text{color:#fff}.bp-theme-dark .bp-icon{opacity:.9}.bp{align-items:center;background-color:#f5f5f5;border:0 none;bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;margin:0;-webkit-overflow-scrolling:touch;padding:0;position:absolute;right:0;top:0}.bp.bp-dark{background-color:#000}.accessibility-hidden{left:-9999px;position:absolute;top:auto}.bp-no-user-highlight{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bp-is-invisible{visibility:hidden}.bp-has-header .bp-notifications-wrapper{top:48px}.bp-toggle-overlay>button{margin-bottom:0;margin-left:0}.bp-overlay-wrapper{display:inherit;position:relative}.bp-overlay-wrapper .bp-overlay{margin-top:5px}.bp-overlay-wrapper.bp-is-visible .bp-overlay{opacity:1;pointer-events:all;transform:rotateY(0deg) rotateX(0deg);transition-delay:0s;visibility:visible}.bp-preload-wrapper{bottom:0;left:0;margin:0;opacity:1;overflow-y:scroll;position:absolute;right:0;top:0;transition:opacity .7s}.bp-preload-wrapper.bp-is-invisible{opacity:0;visibility:visible}.bp-preload-wrapper .bp-preload{background-color:#f5f5f5}.bp-theme-dark .bp-preload-wrapper .bp-preload{background-color:#464a4f}.bp-preload-wrapper .bp-preload-content{background:#fff url(src/lib/loadingIcon.gif) 50% no-repeat;display:block;margin:15px auto 30px}.bp-popup-modal{left:0;margin:0 auto;position:absolute;right:0;top:100px}.bp-modal-dialog{padding:20px;width:380px}.bp-modal-dialog .bp-print-check{height:16px}.bp-modal-dialog .bp-crawler{font-size:0;height:16px;margin:0 auto;white-space:nowrap;width:10px}.bp-modal-header{display:block;float:right;height:0;width:100%}.bp-modal-content{text-align:center}.bp-modal-content .bp-modal-message{color:#444;margin:10px 0 20px}.bp-modal-close-button{float:right}.bp-modal-close-button svg{fill:#999ea4;height:24px;pointer-events:none;width:24px}.bp-modal-actions{justify-content:flex-start;margin:20px}.bp-modal-backdrop{background-color:#000;height:100%;position:fixed;width:100%}.bp-popup-btn{margin:0 auto}.bp-popup-modal{z-index:160}@keyframes box-crawler{0%,80%,to{opacity:.5;transform:scaleY(1.2)}40%{opacity:1;transform:scaleY(1.6)}}@keyframes fadeIn{0%,25%{opacity:0}to{opacity:1}}.bp-loading-wrapper{animation-duration:1s;animation-iteration-count:1;animation-name:fadeIn;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}.bp-loaded .bp-loading-wrapper{display:none}:not(.bp-loaded)>.bp-loading-wrapper+div{pointer-events:none}.bp-loading{color:#222;position:relative;text-align:center;z-index:1}.bp-loading-btn-container{padding:15px 0 27px;text-align:center}.bp-btn-loading-download{color:#494949;font-size:12px}.bp-crawler-wrapper{position:absolute;top:72px;width:100%}.bp-crawler-wrapper .bp-crawler{transform:scale(1.5)}.bp-crawler-wrapper .bp-crawler div{background-color:#999ea4}.bp-crawler{text-align:center}.bp-crawler div{animation:box-crawler .66s infinite ease-in-out;background-color:#1992d4;border-radius:4px;display:inline-block;height:10px;width:2px}.bp-crawler div:nth-child(2){animation-delay:.1s;margin-left:2px}.bp-crawler div:last-child{animation-delay:.2s;left:8px;margin-left:2px}.bp-is-fullscreen .bp-navigate{display:none}.bp-navigate{background-repeat:no-repeat;border:0 none;cursor:pointer;display:block;height:64px;margin:0;opacity:0;overflow:hidden;position:absolute;text-decoration:none;top:50%;transform:translateY(-50%);transition-property:opacity;white-space:nowrap;width:50px}.bp-navigate:hover{opacity:1}.bp-is-navigation-visible .bp-navigate{opacity:.8}.bp-is-navigation-visible .bp-navigate:hover{opacity:1}.bp-navigate-left{border-radius:0 2px 2px 0;left:0}.bp-navigate-right{border-radius:2px 0 0 2px;right:0}.bp-controls-wrapper{border:0 none;bottom:25px;left:50%;margin:0;padding:0;position:absolute}.bp-controls{background:rgba(34,34,34,.95);border-radius:3px;display:table;left:-50%;opacity:0;position:relative;table-layout:fixed;transition:opacity .5s}.box-show-preview-controls .bp-controls,.bp-controls:focus,.bp-controls:hover{opacity:1}.bp-controls-cell{display:table-cell;margin:0;padding:0;vertical-align:middle}.bp-controls-btn{background:transparent;border:1px solid transparent;color:#fff;cursor:pointer;display:block;height:48px;margin:0;opacity:.7;outline:0;padding:0;width:48px;zoom:1}.bp-controls-btn:focus,.bp-controls-btn:hover{opacity:1}.bp-controls-btn:focus{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.5),0 1px 2px rgba(0,0,0,.1)}.bp-controls-btn span{display:block;margin:0 auto}.bp-controls-btn svg{vertical-align:middle}.bp-controls-btn.disabled,.bp-controls-btn:disabled{cursor:default;opacity:.2;pointer-events:none}.bp-exit-fullscreen-icon,.bp-is-fullscreen .bp-enter-fullscreen-icon{display:none}.bp-is-fullscreen .bp-exit-fullscreen-icon{display:block}.bp-progress-bar-container{position:absolute;width:100%}.bp-header~.bp-progress-bar-container{top:48px}.bp-progress-bar{background-color:#1992d4;height:3px;opacity:0;transition:opacity .3s ease-in,width .2s ease-in;width:0}.bp-progress-bar.bp-is-visible{opacity:1} \ No newline at end of file diff --git a/dist/0.112.0/zh-TW/preview.js b/dist/0.112.0/zh-TW/preview.js deleted file mode 100644 index 43ba38735..000000000 --- a/dist/0.112.0/zh-TW/preview.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Box Content Preview UI Kit | Copyright 2016-2017 Box | Licenses: https://cloud.box.com/v/preview-licenses-v1 */ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=474)}([function(e,t,n){"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x()(t,{headers:n,method:e,body:JSON.stringify(r)}).then(i).then(D)}function o(){var e=document.querySelector("#downloadiframe");return e||(e=document.createElement("iframe"),e.setAttribute("id","downloadiframe"),e.style.display="none",e=document.body.appendChild(e)),e.contentDocument.write(""),e}function a(e){var t=void 0,n=void 0;"string"==typeof(arguments.length<=1?void 0:arguments[1])?n=arguments.length<=1?void 0:arguments[1]:(t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]),t=t||{},n=n||"json";var r=void 0;switch(n){case"text":r=M;break;case"blob":r=N;break;case"any":r=I;break;case"json":default:r=D}return x()(e,{headers:t}).then(i).then(r)}function s(){for(var e=arguments.length,t=Array(e),n=0;n\s*<"))}function h(e,t){e.appendChild(u(e,t))}function d(e){var t=document.createElement("script");return t.src=e,t.async=!1,t}function p(e){var t=document.createElement("link");return t.rel="prefetch",t.href=e,t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return t&&(e.Authorization="Bearer "+t),n&&(e.BoxApi="shared_link="+n,i&&(e.BoxApi=e.BoxApi+"&shared_link_password="+i)),A&&(e[L]=A),H&&(e[R]=H),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t&&!n)return e;var r="?";e.indexOf("?")>0&&(r="&");var o="";return t&&(o="access_token="+t),n&&(o&&(o+="&"),o=o+"shared_link="+encodeURI(n),i&&(o=o+"&shared_link_password="+encodeURI(i))),A&&(o=o+"&"+T+"="+encodeURI(A)),H&&(o=o+"&"+j+"="+encodeURI(H)),""+e+r+o}function m(e,t){return e.replace("{asset_path}",t||"")}function y(e){var t=e.baseURI,n=e.staticBaseURI;return function(e){return 0===e.indexOf("http")?e:0===e.indexOf("third-party")?n+e:t+e}}function b(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="prefetch"][href="'+e+'"]')||t.appendChild(p(e))})}function E(e){var t=document.head;e.forEach(function(e){t.querySelector('link[rel="stylesheet"][href="'+e+'"]')||t.appendChild(f(e))})}function w(e){var t=document.head,n=[];return e.forEach(function(e){if(!t.querySelector('script[src="'+e+'"]')){var i=d(e);n.push(new Promise(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)})),t.appendChild(i)}}),Promise.all(n)}function _(e){var t="",n=e.key||e.keyIdentifier||"";return e.ctrlKey?t="Control":e.shiftKey?t="Shift":e.metaKey&&(t="Meta"),n===t&&(n=""),0===n.indexOf("U+")&&(n="U+001B"===n?"Escape":String.fromCharCode(n.replace("U+","0x"))),n?(" "===n&&(n="Space"),"Right"!==n&&"Left"!==n&&"Down"!==n&&"Up"!==n||(n="Arrow"+n),t&&(t+="+"),t+n):""}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?t.src:document.querySelector('script[src*="/'+e+'"]').src;if(!n)throw new Error("Missing or malformed preview library");var i=document.createElement("a");i.href=n;var r=i.pathname,o=r.split("/"),a=o.length,s=o[a-1],l=o[a-2],c=o[a-3],u=i.search,h=i.href.replace(s,"").replace(u,""),d=h.replace(l+"/","");return{origin:i.origin,host:i.host,hostname:i.hostname,search:u,protocol:i.protocol,port:i.port,href:i.href,pathname:r,locale:l,version:c,baseURI:h,staticBaseURI:d}}function k(e,t){var n=/\{\d+\}/g;return e&&e.length?e.replace(n,function(e){var n=parseInt(e.replace(/^\D+/g,""),10)-1;return t[n]?t[n]:e}):e}function C(e){return e.name.slice(0,e.name.lastIndexOf(".")).endsWith("360")}function P(e,t,n){e.style.width=t+"px",e.style.height=n+"px"}var S=n(151),x=n.n(S);t.b=a,t.e=s,t.c=l,t.p=c,t.o=u,t.m=h,t.s=f,t.d=v,t.g=g,t.h=m,t.i=y,t.l=b,t.j=E,t.k=w,t.f=_,t.a=O,t.n=k,t.q=C,t.r=P;var L="X-Box-Client-Name",R="X-Box-Client-Version",T="box_client_name",j="box_client_version",A="Box Content Preview",H="0.112.0",D=function(e){return 204===e.status?e:e.json()},M=function(e){return e.text()},N=function(e){return e.blob()},I=function(e){return e}},function(e,t,n){"use strict";var i=n(342),r=n.n(i),o=n(343),a=n.n(o),s=n(361),l=n.n(s),c=n(345),u=n.n(c),h=n(347),d=n.n(h),p=n(352),f=n.n(p),v=n(356),g=n.n(v),m=n(357),y=n.n(m),b=n(359),E=n.n(b),w=n(365),_=n.n(w),O=n(367),k=n.n(O),C=n(368),P=n.n(C),S=n(348),x=n.n(S),L=n(349),R=n.n(L),T=n(350),j=n.n(T),A=n(358),H=n.n(A),D=n(353),M=n.n(D),N=n(355),I=n.n(N),B=n(354),V=n.n(B),z=n(341),F=n.n(z),q=n(360),U=n.n(q),W=n(362),G=n.n(W),Q=n(363),X=n.n(Q),K=n(339),J=n.n(K),Z=n(340),Y=n.n(Z),$=n(344),ee=n.n($),te=n(346),ne=n.n(te),ie=n(351),re=n.n(ie),oe=n(366),ae=n.n(oe),se=n(364),le=n.n(se);n.d(t,"y",function(){return ce}),n.d(t,"p",function(){return ue}),n.d(t,"v",function(){return he}),n.d(t,"u",function(){return de}),n.d(t,"q",function(){return pe}),n.d(t,"d",function(){return fe}),n.d(t,"e",function(){return ve}),n.d(t,"x",function(){return ge}),n.d(t,"o",function(){return me}),n.d(t,"n",function(){return ye}),n.d(t,"m",function(){return be}),n.d(t,"t",function(){return Ee}),n.d(t,"s",function(){return we}),n.d(t,"l",function(){return _e}),n.d(t,"j",function(){return Oe}),n.d(t,"a",function(){return ke}),n.d(t,"b",function(){return Ce}),n.d(t,"c",function(){return Pe}),n.d(t,"i",function(){return Se}),n.d(t,"k",function(){return xe}),n.d(t,"h",function(){return Le}),n.d(t,"r",function(){return Re}),n.d(t,"g",function(){return Te}),n.d(t,"f",function(){return je}),n.d(t,"C",function(){return Ae}),n.d(t,"B",function(){return He}),n.d(t,"z",function(){return De}),n.d(t,"A",function(){return Me}),n.d(t,"w",function(){return Ne});var ce=(r.a,a.a),ue=l.a,he=u.a,de=d.a,pe=f.a,fe=g.a,ve=y.a,ge=E.a,me=_.a,ye=k.a,be=P.a,Ee=x.a,we=R.a,_e=j.a,Oe=H.a,ke=M.a,Ce=I.a,Pe=V.a,Se=F.a,xe=U.a,Le=G.a,Re=X.a,Te=J.a,je=Y.a,Ae=ee.a,He=ne.a,De=re.a,Me=ae.a,Ne=le.a},,,function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n0?c="Edge":l.indexOf("OPR/")>0?c="Opera":l.indexOf("Chrome/")>0?c="Chrome":l.indexOf("Safari/")>0?c="Safari":l.indexOf("Trident/")>0?c="Explorer":l.indexOf("Firefox/")>0&&(c="Firefox"),c)}},{key:"canPlayType",value:function(e,t){var n=void 0;if(0===e.indexOf("audio/"))n=document.createElement("audio");else{if(0!==e.indexOf("video/"))return!1;n=document.createElement("video")}return!(!n.canPlayType||n.canPlayType(e).replace(/^no$/,"")!==t)}},{key:"canPlayH264",value:function(e){return t.canPlayType(e,"maybe")||t.canPlayType(e,"probably")}},{key:"canPlayH264Baseline",value:function(){return t.canPlayH264(r)}},{key:"canPlayH264Main",value:function(){return t.canPlayH264(o)}},{key:"canPlayH264High",value:function(){return t.canPlayH264(a)}},{key:"canPlayMP3",value:function(){return t.canPlayType("audio/mpeg","maybe")||t.canPlayType("audio/mpeg","probably")}},{key:"canPlayDash",value:function n(){var i=e.MediaSource,n=!1;return i&&(n="function"==typeof i.isTypeSupported?i.isTypeSupported(a):t.canPlayH264High()),n}},{key:"hasMSE",value:function(){return!!e.MediaSource}},{key:"hasWebGL",value:function(){if(!u){var e=document.createElement("canvas");try{u=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}h=null!==u&&void 0!==u}return h}},{key:"supportsModel3D",value:function(){return!!t.hasWebGL()&&!!u.getExtension(s)}},{key:"hasFlash",value:function t(){var t=!1;try{t=Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){t=void 0!==e.navigator.mimeTypes["application/x-shockwave-flash"]}return t}},{key:"hasSVG",value:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}},{key:"isMobile",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}},{key:"isIOS",value:function(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return/Android/g.test(navigator.userAgent)}}]),t}();t.a=d}).call(t,n(32))},,,,function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},,,,,function(e,t,n){"use strict";function i(e,t){for(var n=e;n&&n!==document;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function r(e,t){for(var n=t||"data-type",i=e;i&&i!==document;i=i.parentNode)if(i&&i.getAttribute(n))return i.getAttribute(n);return""}function o(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.v)}function a(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.v)}function s(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.remove(b.H)}function l(e){var t=e;("string"==typeof e||e instanceof String)&&(t=document.querySelector(e)),t&&t.classList.add(b.H)}function c(e,t){var n=e;n.style.width="",n.style.height="",n.classList.remove(b.Q),t&&(n.value="")}function u(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function h(e,t,n){if(""!==e)return('顯示圖片').trim();var i="";return"0"!==t&&(i=n.replace(/\W*(\w)\w*/g,"$1").toUpperCase().substring(0,3)),('
                                            '+i+"
                                            ").trim()}function d(e){return parseFloat(e.getAttribute("data-scale"))||1}function p(e){return 1===e.length&&""===e[0].text}function f(e){return e===E.d||e===E.e}function v(e,t,n,i){var r=null;if(e&&void 0!==e.x&&void 0!==e.y){var o=t.width/n,a=(t.height-i)/n;(Math.abs(o-e.x)>1||Math.abs(a!==e.y)>1)&&(r={x:o/e.x,y:a/e.y})}return r}function g(e){return(""+e).replace(/&/g,"&").replace(/>/g,">").replace(/r,s=e.querySelector(".bp-annotation-caret");if(o&&!a){var l=Math.max(10,i);return s.style.left=l+"px",0}if(a&&!o){var c=Math.max(10,r-i);return s.style.left=n-c+"px",r-n}return s.style.left="50%",t}function y(e){return E.f.indexOf(e)>-1}var b=n(1),E=n(24);t.n=i,t.a=r,t.d=o,t.c=a,t.p=s,t.o=l,t.j=c,t.g=u,t.i=h,t.b=d,t.e=p,t.l=f,t.k=v,t.h=g,t.f=m,t.m=y;var w=9},,,,function(e,t,n){"use strict";function i(e,t){return t+"/2.0/files/"+e+"?fields="+p.join(",")}function r(e,t){return t+"/2.0/files/"+e+"?fields=download_url"}function o(e,t){return e.representations.entries.find(function(e){return e.representation===t})||null}function a(e,t){return!!e&&!!e.permissions&&!!e.permissions[t]}function s(e,t,n){return!!e&&"function"==typeof e[t]&&(!n||e[t](n))}function l(e){return!!e&&p.every(function(t){return void 0!==e[t]})}function c(e){o(e,d.J)||e.representations.entries.push({content:{url_template:e.authenticated_download_url+"?preview=true"},representation:d.J,status:{state:"success"}})}function u(e){e.representations&&c(e),h.a.set(e.id,e)}var h=n(40),d=n(1);t.f=i,t.e=r,t.g=o,t.c=a,t.d=s,t.a=l,t.b=u;var p=["permissions","parent","shared_link","sha1","file_version","name","size","extension","representations","watermark_info","authenticated_download_url"]},,function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"w",function(){return r}),n.d(t,"x",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"i",function(){return v}),n.d(t,"o",function(){return g}),n.d(t,"s",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return C}),n.d(t,"q",function(){return P}),n.d(t,"p",function(){return S}),n.d(t,"u",function(){return x}),n.d(t,"v",function(){return L}),n.d(t,"r",function(){return R});var i="bp-annotation-dialog",r="bp-highlight-dialog",o="bp-is-text-highlighted",a="bp-point-annotation-mode",s="annotation-textarea",l="button-container",c="cannot-annotate",u="annotation-comments",h="reply-textarea",d="."+s,p="."+l,f="."+u,v="."+h,g="active",m="active-hover",y="hover",b="inactive",E="pending",w="pending-active",_="point",O="highlight",k="highlight-comment",C=[E,w],P=[g,m],S=[y,m],x="rgba(254, 217, 78, 0.5)",L="rgba(255, 201, 0, 0.5)",R="rgba(255, 245, 132, 1)"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!!this.determineViewer(e,t)}},{key:"getViewers",value:function(){return Array.isArray(this.viewers)?this.viewers:[]}},{key:"determineViewer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.viewers.find(function(n){return!(t.indexOf(n.NAME)>-1)&&(n.EXT.indexOf(e.extension)>-1&&e.representations.entries.some(function(e){return n.REP===e.representation}))})}},{key:"determineRepresentation",value:function(e,t){return e.representations.entries.find(function(e){return t.REP===e.representation})}}]),e}();t.a=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(152),d=n.n(h),p=n(33),f=n(120),v=n(5),g=n(9),m=n(1),y=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=this.options,i=t.token,r=t.sharedLink,o=t.sharedLinkPassword;return n.i(v.d)(e,i,r,o)}},{key:"addCommonListeners",value:function(){var e=this;p.a.addListener("enter",function(){e.containerEl.classList.add(m.o),e.resize()}),p.a.addListener("exit",function(){e.containerEl.classList.remove(m.o),e.resize()}),document.defaultView.addEventListener("resize",this.debouncedResizeHandler)}},{key:"toggleFullscreen",value:function(){p.a.toggle(this.containerEl)}},{key:"resize",value:function(){this.emit("resize",{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}},{key:"allowNavigationArrows",value:function(){return!0}},{key:"emit",value:function(e,n){var i=this.options,r=i.file,o=i.viewer;b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e,n),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,"viewerevent",{event:e,data:n,viewerName:o?o.NAME:"",fileId:r.id})}},{key:"mobileZoomStartHandler",value:function(e){g.a.isIOS()?(this._scaling=!0,e.preventDefault(),e.stopPropagation()):2===e.touches.length?(this._pinchScale={initial:{0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]},end:{}},this._scaling=!0,e.preventDefault(),e.stopPropagation()):(this._scaling=!1,this._pinchScale=void 0)}},{key:"mobileZoomChangeHandler",value:function(e){2===e.touches.length&&this._scaling&&(this._pinchScale.end={0:[e.touches[0].clientX,e.touches[0].clientY],1:[e.touches[1].clientX,e.touches[1].clientY]})}},{key:"mobileZoomEndHandler",value:function(e){if(this._scaling){var t=0;if(g.a.isIOS())t=e.scale-1;else{var n=Math.sqrt((this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])*(this._pinchScale.initial[0][0]-this._pinchScale.initial[1][0])+(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1])*(this._pinchScale.initial[0][1]-this._pinchScale.initial[1][1]));t=Math.sqrt((this._pinchScale.end[0][0]-this._pinchScale.end[1][0])*(this._pinchScale.end[0][0]-this._pinchScale.end[1][0])+(this._pinchScale.end[0][1]-this._pinchScale.end[1][1])*(this._pinchScale.end[0][1]-this._pinchScale.end[1][1]))-n}t>0?this.zoomIn():t<0&&this.zoomOut(),this._scaling=!1,this._pinchScale=void 0}}},{key:"getViewerOption",value:function(e){var t=this.options,n=t.viewers,i=t.viewer;return n&&n[i.NAME]?n[i.NAME][e]:null}},{key:"loadAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);return n.i(v.j)((t||[]).map(r)),n.i(v.k)((e||[]).map(r))}},{key:"prefetchAssets",value:function(e,t){var i=this.options.location,r=n.i(v.i)(i);n.i(v.l)((t||[]).map(r)),n.i(v.l)((e||[]).map(r))}},{key:"getRepStatus",value:function(e){var t=this.options,n=t.token,i=t.sharedLink,r=t.sharedLinkPassword,o=t.logger,a=new f.a({representation:e||this.options.representation,token:n,sharedLink:i,sharedLinkPassword:r,logger:e?null:o});return this.repStatuses.push(a),a}},{key:"isRepresentationReady",value:function(e){var t=f.a.getStatus(e);return t===m.p||t===m.q}}]),t}(u.a))||a;t.a=_},,,function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"a",function(){return p});var i="toggleVr",r="error",o="load",a="reset",s="sceneLoaded",l="showVrButton",c="toggleFullscreen",u="triggerRender",h="bp-box3d",d="bp-is-hidden",p="bp-invisible"},,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(1),c=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=O();if(c(e))return h(e);b=setTimeout(u,a(e))}function h(e){return b=void 0,S&&v?i(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=E=g=b=void 0}function p(){return void 0===b?y:h(O())}function f(){var e=O(),n=c(e);if(v=arguments,g=this,E=e,n){if(void 0===b)return o(E);if(P)return b=setTimeout(u,t),i(E)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,E,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,r(n)&&(C=!!n.leading,P="maxWait"in n,m=P?w(s(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e,t,i){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return r(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&E.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||f.test(e)?v(e.slice(2),n?2:8):d.test(e)?c:+e}var l="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,y=g||m||Function("return this")(),b=Object.prototype,E=b.toString,w=Math.max,_=Math.min,O=function(){return y.Date.now()};e.exports=i}).call(t,n(32))},,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(46),o=n.n(r),a=n(1),s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement("div");r.className="bp-controls-cell";var o=document.createElement("button");return o.setAttribute("aria-label",e),o.setAttribute("title",e),o.className="bp-controls-btn "+n,o.addEventListener("click",t),i&&(o.innerHTML=i),r.appendChild(o),this.controlsEl.appendChild(r),this.buttonRefs.push({button:o,handler:t}),o}},{key:"enable",value:function(){this.controlsEl.classList.remove(a.v)}},{key:"disable",value:function(){this.controlsEl.classList.add(a.v)}}]),e}();t.a=u},function(e,t,n){"use strict";function i(e){return e.classList.contains(y)}function r(e){var t=g.n(e,"page");return t?{pageEl:t,page:parseInt(t.getAttribute("data-page-number"),10)}:{pageEl:null,page:-1}}function o(e,t){if(!t)return!1;var n=e.clientX,i=e.clientY,r=t.getBoundingClientRect();return i>=r.top&&i<=r.bottom&&n>=r.left&&n<=r.right}function a(e){var t=e.querySelector(".bp-annotation-dialog:not(.bp-is-hidden)"),n=e.querySelector(".bp-highlight-dialog:not(.bp-is-hidden)");return!(!t&&!n)}function s(e,t,n,r){if(i(e)){var o=e.clientHeight,a=(o-n)/2,s=o-r-a-k;t.querySelector(".annotation-container").style.maxHeight=s+"px"}}function l(e,t,n){for(var i=!1,r=-1,o=e.length,a=o-1;++r\n
                                            \n
                                            \n
                                            '.trim(),e.appendChild(i);var r=i.querySelector(".corner1"),o=i.querySelector(".corner2"),a=i.querySelector(".corner3"),s=i.querySelector(".corner4"),l=r.getBoundingClientRect(),c=o.getBoundingClientRect(),u=a.getBoundingClientRect(),h=s.getBoundingClientRect(),p=t.getBoundingClientRect(),f=p.height-E-b,v=p.left,g=p.top+E;return e.removeChild(i),d([l.left-v,l.top-g,c.left-v,c.top-g,u.left-v,u.top-g,h.left-v,h.top-g],f,n)}function v(e){var t=m(e[e.length-1],8),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7];return[Math.max(n,r,a,l),Math.min(i,o,s,c)]}var g=n(18);t.b=r,t.f=o,t.g=a,t.i=s,t.k=l,t.d=c,t.a=u,t.j=h,t.c=d,t.h=p,t.e=f,t.l=v;var m=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y="bp-doc-presentation",b=15,E=15,w=30,_=4/3,O=.75,k=48},,,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(151),u=n.n(c),h=n(0),d=n.n(h),p=n(121),f=n(5),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this._api+"/2.0/files/"+this._fileId+"/annotations?version="+e+"&fields=item,thread,details,message,created_by,created_at,modified_at,permissions";return t&&(i+="&marker="+t),n&&(i+="&limit="+n),i}},{key:"readFromMarker",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u()(this.getReadUrl(n,r,o),{headers:this._headers}).then(function(e){return e.json()}).then(function(r){"error"!==r.type&&Array.isArray(r.entries)?(r.entries.forEach(function(e){i._annotations.push(i.createAnnotation(e))}),r.next_marker?i.readFromMarker(e,t,n,r.next_marker,o):e(i._annotations)):(t(new Error("Could not read annotations from file version with ID "+n)),i.emit("annotationerror",{reason:"read"}))}).catch(function(){t(new Error("Could not read annotations from file due to invalid or expired token")),i.emit("annotationerror",{reason:"authorization"})})}},{key:"canAnnotate",get:function(){return this._canAnnotate}},{key:"canDelete",get:function(){return this._canDelete}},{key:"user",get:function(){return this._user}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){var i="";if(n){i="&shared_link_password="+encodeURI(n)}e.setRequestHeader("boxapi","shared_link="+encodeURI(t)+i)}var s=n(13),l=n.n(s),c=n(29),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.staticBaseURI=t&&t.location?t.location.staticBaseURI:"",this.initBox3d(t)}},{key:"destroy",value:function(){this.removeListener(c.j,this.handleOnRender),this.box3d&&(this.disableVr(),this.box3d.destroy(),this.box3d=null)}},{key:"reset",value:function(){this.resetView()}},{key:"resetView",value:function(){var e=this.getCamera();e&&(e.setPosition(this.defaultCameraPosition.x,this.defaultCameraPosition.y,this.defaultCameraPosition.z),e.setQuaternion(this.defaultCameraQuaternion.x,this.defaultCameraQuaternion.y,this.defaultCameraQuaternion.z,this.defaultCameraQuaternion.w))}},{key:"getCamera",value:function(){return this.box3d?this.box3d.getObjectById("CAMERA_ID"):null}},{key:"getAspect",value:function(){return this.containerEl.clientWidth/this.containerEl.clientHeight}},{key:"getScene",value:function(){return this.box3d?this.box3d.getEntityById("SCENE_ID"):null}},{key:"getBox3D",value:function(){return this.box3d}},{key:"configureXHR",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new XMLHttpRequest;return i.open("GET",t),n.isExternal||(i.setRequestHeader("Authorization","Bearer "+e.token),e.sharedLink&&a(i,e.sharedLink,e.sharedLinkPassword)),Promise.resolve(i)}},{key:"initBox3d",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Box3D)return Promise.reject(new Error("Missing Box3D"));if(!e.file||!e.file.file_version)return Promise.reject(new Error("Missing file version"));var t=new Box3D.XhrResourceLoader(this.configureXHR.bind(this,e));return this.createBox3d(t,e.sceneEntities)}},{key:"createBox3d",value:function(e,t){var n=this,i=new Box3D.Engine({container:this.containerEl,engineName:"Default",resourceLoader:e});return new Promise(function(e){i.addEntities(t),i.getAssetById("APP_ASSET_ID").load(),n.box3d=i,e(n.box3d)})}},{key:"onSceneLoad",value:function(){this.reset(),this.emit(c.g),this.initVr()}},{key:"toggleVr",value:function(){this.vrEnabled?this.disableVr():this.enableVr()}},{key:"onDisableVr",value:function(){this.enableCameraControls(),this.box3d.trigger("resize"),this.box3d.getRenderer().setAttribute("renderOnDemand",!0),this.hideVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting,this.resetView()}},{key:"onEnableVr",value:function(){this.disableCameraControls(),this.box3d.getRenderer().setAttribute("renderOnDemand",!1),this.showVrGamepads();var e=this.box3d.getVrDisplay();this.vrEnabled=e&&e.isPresenting}},{key:"enableVr",value:function(){this.vrEnabled||this.box3d.trigger("enableVrRendering")}},{key:"disableVr",value:function(){this.vrEnabled&&this.box3d.trigger("disableVrRendering")}},{key:"handleOnRender",value:function(){this.box3d&&this.box3d.trigger("render")}},{key:"resize",value:function(){this.box3d&&this.box3d.trigger("resize")}},{key:"enableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.enable()}},{key:"disableCameraControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=this.getCamera(),n=t.getComponentByScriptId(e);n&&n.disable()}},{key:"initVr",value:function(){var e=this;if(!Box3D.isTablet()){this.box3d.getApplication().getComponentByScriptId("vr_presenter").whenDisplaysAvailable(function(t){t.length&&(e.emit(c.h),e.box3d.listenTo(e.box3d,"vrRenderingDisabled",e.onDisableVr.bind(e)),e.box3d.listenTo(e.box3d,"vrRenderingEnabled",e.onEnableVr.bind(e)),e.createVrGamepads())})}}},{key:"createVrGamepads",value:function(){var e=this;this.vrGamepads.length||(this.vrGamepads=[Box3D.Handedness.Left,Box3D.Handedness.Right].map(function(t){return e.createVrGamepad(t)}))}},{key:"createVrGamepad",value:function(e){var t=this,n=this.box3d.createNode(),i=function(e){var i=e.find(function(e){return"prefab"===e.type}),r=t.box3d.getAssetById(i.id);n.addChild(r.createInstance()),t.vrEnabled?t.showVrGamepads():t.hideVrGamepads()},r=function(e){var n=null;if(e.id.indexOf("Oculus")>-1)switch(e.hand){case"left":n=f;break;default:n=v}else if(e.id.indexOf("OpenVR")>-1&&(n=g,t.vrGamepadLoadPromise))return void t.vrGamepadLoadPromise.then(i);t.vrGamepadLoadPromise=t.box3d.addRemoteEntities(t.staticBaseURI+"third-party/model3d/WebVR/"+n+"/entities.json",{isExternal:!0}),t.vrGamepadLoadPromise.then(i)},o=n.addComponent("motion_gamepad_device",{handPreference:e});return n.addComponent("intersection_checker",{objectTypeFilter:["mesh"]}),this.getScene().addChild(n),o.whenGamepadFound(r),n}},{key:"showVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!0)})}},{key:"hideVrGamepads",value:function(){this.vrGamepads.forEach(function(e){return e.setProperty("visible",!1)})}}]),t}(l.a);t.a=m},,,,,,function(e,t,n){var i,r;!function(o,a){i=o,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(function(){function e(e,t){var n=typeof e[t];return n==E||!(n!=b||!e[t])||"unknown"==n}function t(e,t){return!(typeof e[t]!=b||!e[t])}function n(e,t){return typeof e[t]!=w}function i(e){return function(t,n){for(var i=n.length;i--;)if(!e(t,n[i]))return!1;return!0}}function r(e){return e&&P(e,C)&&x(e,k)}function o(e){return t(e,"body")?e.body:e.getElementsByTagName("body")[0]}function a(t){typeof console!=w&&e(console,"log")}function s(e,t){T&&t?alert(e):a(e)}function l(e){A.initialized=!0,A.supported=!1,s("Rangy is not supported in this environment. Reason: "+e,A.config.alertOnFail)}function c(e){s("Rangy warning: "+e,A.config.alertOnWarn)}function u(e){return e.message||e.description||String(e)}function h(){if(T&&!A.initialized){var t,n=!1,i=!1;e(document,"createRange")&&(t=document.createRange(),P(t,O)&&x(t,_)&&(n=!0));var s=o(document);if(!s||"body"!=s.nodeName.toLowerCase())return void l("No body element found");if(s&&e(s,"createTextRange")&&(t=s.createTextRange(),r(t)&&(i=!0)),!n&&!i)return void l("Neither Range nor TextRange are available");A.initialized=!0,A.features={implementsDomRange:n,implementsTextRange:i};var c,h;for(var d in R)(c=R[d])instanceof v&&c.init(c,A);for(var p=0,f=M.length;pt?(o.node=i,o.offset-=t):o.node==e.parentNode&&o.offset>r(e)&&++o.offset;return i}function f(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=T)return e.ownerDocument;if(typeof e.document!=T)return e.document;if(e.parentNode)return f(e.parentNode);throw t.createError("getDocument: no document found for node")}function v(e){var n=f(e);if(typeof n.defaultView!=T)return n.defaultView;if(typeof n.parentWindow!=T)return n.parentWindow;throw t.createError("Cannot get a window object for node")}function g(e){if(typeof e.contentDocument!=T)return e.contentDocument;if(typeof e.contentWindow!=T)return e.contentWindow.document;throw t.createError("getIframeDocument: No Document object found for iframe element")}function m(e){if(typeof e.contentWindow!=T)return e.contentWindow;if(typeof e.contentDocument!=T)return e.contentDocument.defaultView;throw t.createError("getIframeWindow: No Window object found for iframe element")}function y(e){return e&&j.isHostMethod(e,"setTimeout")&&j.isHostObject(e,"document")}function b(e,t,n){var i;if(e?j.isHostProperty(e,"nodeType")?i=1==e.nodeType&&"iframe"==e.tagName.toLowerCase()?g(e):f(e):y(e)&&(i=e.document):i=document,!i)throw t.createError(n+"(): Parameter must be a Window object or DOM node");return i}function E(e){for(var t;t=e.parentNode;)e=t;return e}function w(e,n,i,o){var s,l,u,h,d;if(e==i)return n===o?0:n[index:"+r(e)+",length:"+e.childNodes.length+"]["+(e.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return e.nodeName}function k(e){for(var t,n=f(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n}function C(e,t,n){var i=A(e),r=e.createElement("div");r.contentEditable=""+!!n,t&&(r.innerHTML=t);var o=i.firstChild;return o?i.insertBefore(r,o):i.appendChild(r),r}function P(e){return e.parentNode.removeChild(e)}function S(e){this.root=e,this._next=e}function x(e){return new S(e)}function L(e,t){this.node=e,this.offset=t}function R(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}var T="undefined",j=e.util,A=j.getBody;j.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),j.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var H=document.createElement("div");j.areHostMethods(H,["insertBefore","appendChild","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"]))||t.fail("Incomplete Element implementation"),j.isHostProperty(H,"innerHTML")||t.fail("Element is missing innerHTML property");var D=document.createTextNode("test");j.areHostMethods(D,["splitText","deleteData","insertData","appendData","cloneNode"]||!j.areHostObjects(H,["previousSibling","nextSibling","childNodes","parentNode"])||!j.areHostProperties(D,["data"]))||t.fail("Incomplete Text Node implementation");var M=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},N=!1;!function(){var t=document.createElement("b");t.innerHTML="1";var n=t.firstChild;t.innerHTML="
                                            ",N=_(n),e.features.crashyTextNodes=N}();var I;typeof window.getComputedStyle!=T?I=function(e,t){return v(e).getComputedStyle(e,null)[t]}:typeof document.documentElement.currentStyle!=T?I=function(e,t){return e.currentStyle?e.currentStyle[t]:""}:t.fail("No means of obtaining computed style properties found"),S.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},L.prototype={equals:function(e){return!!e&&this.node===e.node&&this.offset==e.offset},inspect:function(){return"[DomPosition("+O(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},R.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},R.prototype.toString=function(){return this.message},e.dom={arrayContains:M,isHtmlNamespace:n,parentElement:i,getNodeIndex:r,getNodeLength:o,getCommonAncestor:a,isAncestorOf:s,isOrIsAncestorOf:l,getClosestAncestorIn:c,isCharacterDataNode:u,isTextOrCommentNode:h,insertAfter:d,splitDataNode:p,getDocument:f,getWindow:v,getIframeWindow:m,getIframeDocument:g,getBody:A,isWindow:y,getContentDocument:b,getRootContainer:E,comparePoints:w,isBrokenNode:_,inspectNode:O,getComputedStyleProperty:I,createTestElement:C,removeNode:P,fragmentFromNodeChildren:k,createIterator:x,DomPosition:L},e.DOMException=R}),A.createCoreModule("DomRange",["DomUtil"],function(e,t){function n(e,t){return 3!=e.nodeType&&(z(e,t.startContainer)||z(e,t.endContainer))}function i(e){return e.document||F(e.startContainer)}function r(e){return X(e.startContainer)}function o(e){return new N(e.parentNode,V(e))}function a(e){return new N(e.parentNode,V(e)+1)}function s(e,t,n){var i=11==e.nodeType?e.firstChild:e;return B(t)?n==t.length?D.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:U(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function l(e,t,n){if(C(e),C(t),i(t)!=i(e))throw new I("WRONG_DOCUMENT_ERR");var r=q(e.startContainer,e.startOffset,t.endContainer,t.endOffset),o=q(e.endContainer,e.endOffset,t.startContainer,t.startOffset);return n?r<=0&&o>=0:r<0&&o>0}function c(e){for(var t,n,r,o=i(e.range).createDocumentFragment();n=e.next();){if(t=e.isPartiallySelectedSubtree(),n=n.cloneNode(!t),t&&(r=e.getSubtreeIterator(),n.appendChild(c(r)),r.detach()),10==n.nodeType)throw new I("HIERARCHY_REQUEST_ERR");o.appendChild(n)}return o}function u(e,t,n){var i,r;n=n||{stop:!1};for(var o,a;o=e.next();)if(e.isPartiallySelectedSubtree()){if(t(o)===!1)return void(n.stop=!0);if(a=e.getSubtreeIterator(),u(a,t,n),a.detach(),n.stop)return}else for(i=D.createIterator(o);r=i.next();)if(t(r)===!1)return void(n.stop=!0)}function h(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(t=e.getSubtreeIterator(),h(t),t.detach()):e.remove()}function d(e){for(var t,n,r=i(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(d(n)),n.detach()):e.remove(),10==t.nodeType)throw new I("HIERARCHY_REQUEST_ERR");r.appendChild(t)}return r}function p(e,t,n){var i,r=!(!t||!t.length),o=!!n;r&&(i=new RegExp("^("+t.join("|")+")$"));var a=[];return u(new v(e,!1),function(t){if((!r||i.test(t.nodeType))&&(!o||n(t))){var s=e.startContainer;if(t!=s||!B(s)||e.startOffset!=s.length){var l=e.endContainer;t==l&&B(l)&&0==e.endOffset||a.push(t)}}}),a}function f(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+D.inspectNode(e.startContainer)+":"+e.startOffset+", "+D.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function v(e,t){if(this.range=e,this.clonePartiallySelectedTextNodes=t,!e.collapsed){this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset;var n=e.commonAncestorContainer;this.sc===this.ec&&B(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==n||B(this.sc)?W(this.sc,n,!0):this.sc.childNodes[this.so],this._last=this.ec!==n||B(this.ec)?W(this.ec,n,!0):this.ec.childNodes[this.eo-1])}}function g(e){return function(t,n){for(var i,r=n?t:t.parentNode;r;){if(i=r.nodeType,Q(e,i))return r;r=r.parentNode}return null}}function m(e,t){if(re(e,t))throw new I("INVALID_NODE_TYPE_ERR")}function y(e,t){if(!Q(t,e.nodeType))throw new I("INVALID_NODE_TYPE_ERR")}function b(e,t){if(t<0||t>(B(e)?e.length:e.childNodes.length))throw new I("INDEX_SIZE_ERR")}function E(e,t){if(ne(e,!0)!==ne(t,!0))throw new I("WRONG_DOCUMENT_ERR")}function w(e){if(ie(e,!0))throw new I("NO_MODIFICATION_ALLOWED_ERR")}function _(e,t){if(!e)throw new I(t)}function O(e,t){return t<=(B(e)?e.length:e.childNodes.length)}function k(e){return!!e.startContainer&&!!e.endContainer&&!(K&&(D.isBrokenNode(e.startContainer)||D.isBrokenNode(e.endContainer)))&&X(e.startContainer)==X(e.endContainer)&&O(e.startContainer,e.startOffset)&&O(e.endContainer,e.endOffset)}function C(e){if(!k(e))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+e.inspect()+")")}function P(e,t){C(e);var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=n===r;B(r)&&o>0&&o0&&i=V(n)&&o++,i=0),e.setStartAndEnd(n,i,r,o)}function S(e){C(e);var t=e.commonAncestorContainer.parentNode.cloneNode(!1);return t.appendChild(e.cloneContents()),t.innerHTML}function x(e){e.START_TO_START=ce,e.START_TO_END=ue,e.END_TO_END=he,e.END_TO_START=de,e.NODE_BEFORE=pe,e.NODE_AFTER=fe,e.NODE_BEFORE_AND_AFTER=ve,e.NODE_INSIDE=ge}function L(e){x(e),x(e.prototype)}function R(e,t){return function(){C(this);var n,i,r=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,l=new v(this,!0);r!==s&&(n=W(r,s,!0),i=a(n),r=i.node,o=i.offset),u(l,w),l.reset();var c=e(l);return l.detach(),t(this,r,o,r,o),c}}function T(t,i){function r(e,t){return function(n){y(n,Z),y(X(n),Y);var i=(e?o:a)(n);(t?s:l)(this,i.node,i.offset)}}function s(e,t,n){var r=e.endContainer,o=e.endOffset;t===e.startContainer&&n===e.startOffset||(X(t)==X(r)&&1!=q(t,n,r,o)||(r=t,o=n),i(e,t,n,r,o))}function l(e,t,n){var r=e.startContainer,o=e.startOffset;t===e.endContainer&&n===e.endOffset||(X(t)==X(r)&&q(t,n,r,o)!=-1||(r=t,o=n),i(e,r,o,t,n))}var c=function(){};c.prototype=e.rangePrototype,t.prototype=new c,M.extend(t.prototype,{setStart:function(e,t){m(e,!0),b(e,t),s(this,e,t)},setEnd:function(e,t){m(e,!0),b(e,t),l(this,e,t)},setStartAndEnd:function(){var e=arguments,t=e[0],n=e[1],r=t,o=n;switch(e.length){case 3:o=e[2];break;case 4:r=e[2],o=e[3]}i(this,t,n,r,o)},setBoundary:function(e,t,n){this["set"+(n?"Start":"End")](e,t)},setStartBefore:r(!0,!0),setStartAfter:r(!1,!0),setEndBefore:r(!0,!1),setEndAfter:r(!1,!1),collapse:function(e){C(this),e?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){m(e,!0),i(this,e,0,e,G(e))},selectNode:function(e){m(e,!1),y(e,Z);var t=o(e),n=a(e);i(this,t.node,t.offset,n.node,n.offset)},extractContents:R(d,i),deleteContents:R(h,i),canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},splitBoundaries:function(){P(this)},splitBoundariesPreservingPositions:function(e){P(this,e)},normalizeBoundaries:function(){C(this);var e,t=this.startContainer,n=this.startOffset,r=this.endContainer,o=this.endOffset,a=function(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(r=e,o=e.length,e.appendData(t.data),J(t))},s=function(e){var i=e.previousSibling;if(i&&i.nodeType==e.nodeType){t=e;var a=e.length;if(n=i.length,e.insertData(0,i.data),J(i),t==r)o+=n,r=t;else if(r==e.parentNode){var s=V(e);o==s?(r=e,o=a):o>s&&o--}}},l=!0;if(B(r))o==r.length?a(r):0==o&&(e=r.previousSibling)&&e.nodeType==r.nodeType&&(o=e.length,t==r&&(l=!1),e.appendData(r.data),J(r),r=e);else{if(o>0){var c=r.childNodes[o-1];c&&B(c)&&a(c)}l=!this.collapsed}if(l){if(B(t))0==n?s(t):n==t.length&&(e=t.nextSibling)&&e.nodeType==t.nodeType&&(r==e&&(r=t,o+=t.length),t.appendData(e.data),J(e));else if(nx",ae=3==oe.firstChild.nodeType}catch(e){}e.features.htmlParsingConforms=ae;var se=ae?function(e){var t=this.startContainer,n=F(t);if(!t)throw new I("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:B(t)&&(i=D.parentElement(t)),i=null===i||"HTML"==i.nodeName&&D.isHtmlNamespace(F(i).documentElement)&&D.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1),i.innerHTML=e,D.fragmentFromNodeChildren(i)}:function(e){var t=i(this),n=t.createElement("body");return n.innerHTML=e,D.fragmentFromNodeChildren(n)},le=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],ce=0,ue=1,he=2,de=3,pe=0,fe=1,ve=2,ge=3;M.extend(e.rangePrototype,{compareBoundaryPoints:function(e,t){C(this),E(this.startContainer,t.startContainer);var n,i,r,o,a=e==de||e==ce?"start":"end",s=e==ue||e==ce?"start":"end";return n=this[a+"Container"],i=this[a+"Offset"],r=t[s+"Container"],o=t[s+"Offset"],q(n,i,r,o)},insertNode:function(e){if(C(this),y(e,ee),w(this.startContainer),z(e,this.startContainer))throw new I("HIERARCHY_REQUEST_ERR");var t=s(e,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){C(this);var e,t;if(this.collapsed)return i(this).createDocumentFragment();if(this.startContainer===this.endContainer&&B(this.startContainer))return e=this.startContainer.cloneNode(!0),e.data=e.data.slice(this.startOffset,this.endOffset),t=i(this).createDocumentFragment(),t.appendChild(e),t;var n=new v(this,!0);return e=c(n),n.detach(),e},canSurroundContents:function(){C(this),w(this.startContainer),w(this.endContainer);var e=new v(this,!0),t=e._first&&n(e._first,this)||e._last&&n(e._last,this);return e.detach(),!t},surroundContents:function(e){if(y(e,te),!this.canSurroundContents())throw new I("INVALID_STATE_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);s(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){C(this);for(var e,t=new H(i(this)),n=le.length;n--;)e=le[n],t[e]=this[e];return t},toString:function(){C(this);var e=this.startContainer;if(e===this.endContainer&&B(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],n=new v(this,!0);return u(n,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),n.detach(),t.join("")},compareNode:function(e){C(this);var t=e.parentNode,n=V(e);if(!t)throw new I("NOT_FOUND_ERR");var i=this.comparePoint(t,n),r=this.comparePoint(t,n+1);return i<0?r>0?ve:pe:r>0?fe:ge},comparePoint:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)<0?-1:q(e,t,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:se,toHtml:function(){return S(this)},intersectsNode:function(e,t){if(C(this),X(e)!=r(this))return!1;var n=e.parentNode,i=V(e);if(!n)return!0;var o=q(n,i,this.endContainer,this.endOffset),a=q(n,i+1,this.startContainer,this.startOffset);return t?o<=0&&a>=0:o<0&&a>0},isPointInRange:function(e,t){return C(this),_(e,"HIERARCHY_REQUEST_ERR"),E(e,this.startContainer),q(e,t,this.startContainer,this.startOffset)>=0&&q(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e){return l(this,e,!1)},intersectsOrTouchesRange:function(e){return l(this,e,!0)},intersection:function(e){if(this.intersectsRange(e)){var t=q(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=q(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return t==-1&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsOrTouchesRange(e)){var t=this.cloneRange();return q(e.startContainer,e.startOffset,this.startContainer,this.startOffset)==-1&&t.setStart(e.startContainer,e.startOffset),1==q(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new I("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==ge},containsNodeContents:function(e){return this.comparePoint(e,0)>=0&&this.comparePoint(e,G(e))<=0},containsRange:function(e){var t=this.intersection(e);return null!==t&&e.equals(t)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(n.length>0){t.setStart(n[0],0);var i=n.pop();return t.setEnd(i,i.length),this.containsRange(t)}return this.containsNodeContents(e)},getNodes:function(e,t){return C(this),p(this,e,t)},getDocument:function(){return i(this)},collapseBefore:function(e){this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){this.setStartAfter(e),this.collapse(!0)},getBookmark:function(t){var n=i(this),r=e.createRange(n);t=t||D.getBody(n),r.selectNodeContents(t);var o=this.intersection(r),a=0,s=0;return o&&(r.setEnd(o.startContainer,o.startOffset),a=r.toString().length,s=a+o.toString().length),{start:a,end:s,containerNode:t}},moveToBookmark:function(e){var t=e.containerNode,n=0;this.setStart(t,0),this.collapse(!0);for(var i,r,o,a,s=[t],l=!1,c=!1;!c&&(i=s.pop());)if(3==i.nodeType)r=n+i.length,!l&&e.start>=n&&e.start<=r&&(this.setStart(i,e.start-n),l=!0),l&&e.end>=n&&e.end<=r&&(this.setEnd(i,e.end-n),c=!0),n=r;else for(a=i.childNodes,o=a.length;o--;)s.push(a[o])},getName:function(){return"DomRange"},equals:function(e){return H.rangesEqual(this,e)},isValid:function(){return k(this)},inspect:function(){return f(this)},detach:function(){}}),T(H,A),M.extend(H,{rangeProperties:le,RangeIterator:v,copyComparisonConstants:L,createPrototypeRange:T,inspect:f,toHtml:S,getRangeDocument:i,rangesEqual:function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}}),e.DomRange=H}),A.createCoreModule("WrappedRange",["DomRange"],function(e,t){var n,i,r=e.dom,o=e.util,a=r.DomPosition,s=e.DomRange,l=r.getBody,c=r.getContentDocument,u=r.isCharacterDataNode;if(e.features.implementsDomRange&&function(){function i(e){for(var t,n=d.length;n--;)t=d[n],e[t]=e.nativeRange[t];e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset}function a(e,t,n,i,r){var o=e.startContainer!==t||e.startOffset!=n,a=e.endContainer!==i||e.endOffset!=r,s=!e.equals(e.nativeRange);(o||a||s)&&(e.setEnd(i,r),e.setStart(t,n))}var u,h,d=s.rangeProperties;n=function(e){if(!e)throw t.createError("WrappedRange: Range must be specified");this.nativeRange=e,i(this)},s.createPrototypeRange(n,a),u=n.prototype,u.selectNode=function(e){this.nativeRange.selectNode(e),i(this)},u.cloneContents=function(){return this.nativeRange.cloneContents()},u.surroundContents=function(e){this.nativeRange.surroundContents(e),i(this)},u.collapse=function(e){this.nativeRange.collapse(e),i(this)},u.cloneRange=function(){return new n(this.nativeRange.cloneRange())},u.refresh=function(){i(this)},u.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");l(document).appendChild(p);var f=document.createRange();f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),u.setStart=function(e,t){this.nativeRange.setStart(e,t),i(this)},u.setEnd=function(e,t){this.nativeRange.setEnd(e,t),i(this)},h=function(e){return function(t){this.nativeRange[e](t),i(this)}}}catch(e){u.setStart=function(e,t){try{this.nativeRange.setStart(e,t)}catch(n){this.nativeRange.setEnd(e,t),this.nativeRange.setStart(e,t)}i(this)},u.setEnd=function(e,t){try{this.nativeRange.setEnd(e,t)}catch(n){this.nativeRange.setStart(e,t),this.nativeRange.setEnd(e,t)}i(this)},h=function(e,t){return function(n){try{this.nativeRange[e](n)}catch(i){this.nativeRange[t](n),this.nativeRange[e](n)}i(this)}}}u.setStartBefore=h("setStartBefore","setEndBefore"),u.setStartAfter=h("setStartAfter","setEndAfter"),u.setEndBefore=h("setEndBefore","setStartBefore"),u.setEndAfter=h("setEndAfter","setStartAfter"),u.selectNodeContents=function(e){this.setStartAndEnd(e,0,r.getNodeLength(e))},f.selectNodeContents(p),f.setEnd(p,3);var v=document.createRange();v.selectNodeContents(p),v.setEnd(p,4),v.setStart(p,2),f.compareBoundaryPoints(f.START_TO_END,v)==-1&&1==f.compareBoundaryPoints(f.END_TO_START,v)?u.compareBoundaryPoints=function(e,t){return t=t.nativeRange||t,e==t.START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:u.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)};var g=document.createElement("div");g.innerHTML="123";var m=g.firstChild,y=l(document);y.appendChild(g),f.setStart(m,1),f.setEnd(m,2),f.deleteContents(),"13"==m.data&&(u.deleteContents=function(){this.nativeRange.deleteContents(),i(this)},u.extractContents=function(){var e=this.nativeRange.extractContents();return i(this),e}),y.removeChild(g),y=null,o.isHostMethod(f,"createContextualFragment")&&(u.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),l(document).removeChild(p),u.getName=function(){return"WrappedRange"},e.WrappedRange=n,e.createNativeRange=function(e){return e=c(e,t,"createNativeRange"),e.createRange()}}(),e.features.implementsTextRange){var h=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();n=e.duplicate(),n.collapse(!1);var o=n.parentElement(),a=i==o?i:r.getCommonAncestor(i,o);return a==t?a:r.getCommonAncestor(t,a)},d=function(e){return 0==e.compareEndPoints("StartToEnd",e)},p=function(e,t,n,i,o){var s=e.duplicate();s.collapse(n);var l=s.parentElement();if(r.isOrIsAncestorOf(t,l)||(l=t),!l.canHaveHTML){var c=new a(l.parentNode,r.getNodeIndex(l));return{boundaryPosition:c,nodeInfo:{nodeIndex:c.offset,containerElement:c.node}}}var h=r.getDocument(l).createElement("span");h.parentNode&&r.removeNode(h);for(var d,p,f,v,g,m=n?"StartToStart":"StartToEnd",y=o&&o.containerElement==l?o.nodeIndex:0,b=l.childNodes.length,E=b,w=E;;){if(w==b?l.appendChild(h):l.insertBefore(h,l.childNodes[w]),s.moveToElementText(h),0==(d=s.compareEndPoints(m,e))||y==E)break;if(d==-1){if(E==y+1)break;y=w}else E=E==y+1?y:w;w=Math.floor((y+E)/2),l.removeChild(h)}if(g=h.nextSibling,d==-1&&g&&u(g)){s.setEndPoint(n?"EndToStart":"EndToEnd",e);var _;if(/[\r\n]/.test(g.data)){var O=s.duplicate(),k=O.text.replace(/\r\n/g,"\r").length;for(_=O.moveStart("character",k);(d=O.compareEndPoints("StartToEnd",O))==-1;)_++,O.moveStart("character",1)}else _=s.text.length;v=new a(g,_)}else p=(i||!n)&&h.previousSibling,f=(i||n)&&h.nextSibling,v=f&&u(f)?new a(f,0):p&&u(p)?new a(p,p.data.length):new a(l,r.getNodeIndex(h));return r.removeNode(h),{boundaryPosition:v,nodeInfo:{nodeIndex:w,containerElement:l}}},f=function(e,t){var n,i,o,a,s=e.offset,c=r.getDocument(e.node),h=l(c).createTextRange(),d=u(e.node);return d?(n=e.node,i=n.parentNode):(a=e.node.childNodes,n=s1,r=[],o=a(t),s=0;s=36)K=!1;else{var d=u.cloneRange();u.setStart(c,0),d.setEnd(c,3),d.setStart(c,2),t.addRange(u),t.addRange(d),K=2==t.rangeCount}}for(x.removeNode(l),t.removeAllRanges(),s=0;s1)E(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t1?E(this,e):t&&this.addRange(e[0])}}ie.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new A("INDEX_SIZE_ERR");return this._ranges[e].cloneRange()};var oe;if(F)oe=function(t){var n;e.isSelectionValid(t.win)?n=t.docSelection.createRange():(n=I(t.win.document).createTextRange(),n.collapse(!0)),t.docSelection.type==M?v(t):p(n)?f(t,n):c(t)};else if(R(q,"getRangeAt")&&typeof q.rangeCount==S)oe=function(t){if($&&z&&t.docSelection.type==M)v(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var n=0,i=t.rangeCount;n0)return e.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw t.createError("getNativeTextRange: selection contains no range")}),ie.getName=function(){return"WrappedSelection"},ie.inspect=function(){return O(this)},ie.detach=function(){b(this.win,"delete"),y(this)},m.detachAll=function(){b(null,"deleteAll")},m.inspect=O,m.isDirectionBackward=n,e.Selection=m,e.selectionPrototype=ie,e.addShimListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return ne(e)}),e=null})});var I=!1,B=function(e){I||(I=!0,!A.initialized&&A.config.autoInitialize&&h())};return T&&("complete"==document.readyState?B():(e(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",B,!1),D(window,"load",B))),A})},,,,,,,,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=n(6),a=n(5),s=function(){function e(e,t){for(var n=0;n\n \n \n
                                            \n

                                            \n
                                            \n \n
                                            \n
                                            \n
                                            \n ").trim(),this.messageEl=this.popupEl.querySelector("#"+s),this.buttonEl=this.popupEl.querySelector("button.bp-popup-btn"),this.closeButtonEl=this.popupEl.querySelector("button.bp-modal-close-button"),this.contentEl=this.popupEl.querySelector("div.bp-modal-content"),this.backdropEl=this.popupEl.querySelector("div.bp-modal-backdrop"),this.buttonDisabled=!1,this.popupEl.addEventListener("click",this.popupClickHandler),document.addEventListener("keydown",this.keydownHandler);var l=document.createElement("div");l.className="bp-popup-modal",l.appendChild(this.popupEl),t.appendChild(l)}return s(e,[{key:"destroy",value:function(){if(this.popupEl){this.popupEl.removeEventListener("click",this.popupClickHandler),document.removeEventListener("keydown",this.keydownHandler);var e=this.popupEl.parentNode;e.parentNode.removeChild(e),this.popupEl=null}}},{key:"show",value:function(e,t,n){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"確定",n&&"function"==typeof n&&(this.buttonEl.handler=n),this.popupEl.classList.remove(r.v),this.popupEl.focus()}},{key:"hide",value:function(){this.popupEl.classList.add(r.v)}},{key:"addContent",value:function(e,t){var n=this.contentEl;t?n.insertBefore(e,n.firstChild):n.appendChild(e)}},{key:"isVisible",value:function(){return!this.popupEl.classList.contains(r.v)}},{key:"isButtonDisabled",value:function(){return this.buttonDisabled}},{key:"disableButton",value:function(){this.buttonDisabled=!0,this.buttonEl.classList.add("is-disabled")}},{key:"enableButton",value:function(){this.buttonDisabled=!1,this.buttonEl.classList.remove("is-disabled")}}]),e}();t.a=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(18),d=n(24),p=n(1),f=n(5),v=n(6),g=function(){function e(e,t){for(var n=0;n0,n._canAnnotate=e.canAnnotate,n._locale=e.locale,n}return o(t,e),g(t,[{key:"destroy",value:function(){this._element&&(this.unbindDOMListeners(),this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null)}},{key:"show",value:function(){var e=this._hasAnnotations?this._element.querySelector(d.i):this._element.querySelector(d.j);e.classList.contains(p.Q)&&this._element.parentNode||(this.position(),this._hasAnnotations?this.activateReply():e.classList.add(p.Q),e.selectionStart&&(e.selectionEnd=e.value.length,e.selectionStart=e.selectionEnd),this._canAnnotate||this._element.classList.add(d.k),h.g(e)&&e.focus())}},{key:"hide",value:function(){h.c(this._element),this.deactivateReply()}},{key:"addAnnotation",value:function(e){if(!this._hasAnnotations){var t=this._element.querySelector('[data-section="create"]'),n=this._element.querySelector('[data-section="show"]');h.c(t),h.d(n),this._hasAnnotations=!0}this.addAnnotationElement(e),this.deactivateReply(!0)}},{key:"removeAnnotation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]');t&&(t.parentNode.removeChild(t),this.deactivateReply())}},{key:"position",value:function(){}},{key:"setup",value:function(e){var t=this;this._element=document.createElement("div"),this._element.setAttribute("data-type","annotation-dialog"),this._element.classList.add(d.l),this._element.innerHTML=('\n
                                            \n
                                            \n
                                            \n \n
                                            \n \n \n
                                            \n
                                            \n
                                            \n
                                            \n
                                            \n \n
                                            \n \n \n
                                            \n
                                            \n
                                            \n ').trim(),e.length>0&&(this._element.dataset.threadNumber=e[0].thread),e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("click",this.clickHandler),this._element.addEventListener("mouseup",this.stopPropagation),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler),this._element.addEventListener("wheel",this.stopPropagation)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("click",this.clickHandler),this._element.removeEventListener("mouseup",this.stopPropagation),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler),this._element.removeEventListener("wheel",this.stopPropagation)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Escape"===n.i(f.f)(e)?this.hide():"reply-textarea"===h.a(e.target)&&this.activateReply()}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"mouseenterHandler",value:function(){if(this._element.classList.contains(p.v)){h.d(this._element);var e=this._element.querySelector(d.i),t=this._element.querySelector(d.j);""===e.textContent&&""===t.textContent||this.emit("annotationcommentpending"),this.activateReply()}}},{key:"mouseleaveHandler",value:function(){this._hasAnnotations&&this.hide()}},{key:"clickHandler",value:function(e){e.stopPropagation();var t=e.target,n=h.a(t),i=h.a(t,"data-annotation-id");switch(n){case"post-annotation-btn":this.postAnnotation();break;case"cancel-annotation-btn":this.cancelAnnotation(),this.deactivateReply(!0);break;case"reply-textarea":this.activateReply();break;case"cancel-reply-btn":this.deactivateReply(!0);break;case"post-reply-btn":this.postReply();break;case"delete-btn":this.showDeleteConfirmation(i);break;case"cancel-delete-btn":this.hideDeleteConfirmation(i);break;case"confirm-delete-btn":this.deleteAnnotation(i)}}},{key:"addAnnotationElement",value:function(e){var t=h.h(e.user.id||"0"),n=void 0;n="0"===t?"正在發佈...":h.h(e.user.name)||"某位使用者";var i=h.h(e.user.avatarUrl||""),r=h.i(i,t,n),o=new Date(e.created).toLocaleString(this._locale,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=h.h(e.text),s=document.createElement("div");s.classList.add("annotation-comment"),s.setAttribute("data-annotation-id",e.annotationID),s.innerHTML=('\n
                                            '+r+'
                                            \n
                                            \n
                                            '+n+'
                                            \n
                                            '+o+'
                                            \n
                                            \n
                                            '+a+'
                                            \n \n
                                            \n
                                            \n 刪除此註解?\n
                                            \n
                                            \n \n \n
                                            \n
                                            ').trim(),this._element.querySelector(d.m).appendChild(s)}},{key:"postAnnotation",value:function(){var e=this._element.querySelector(d.j),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"cancelAnnotation",value:function(){this.emit("annotationcancel")}},{key:"activateReply",value:function(){var e=this._element.querySelector(d.i);if(!e.classList.contains(p.Q)){var t=e.parentNode.querySelector(d.n);e.classList.add(p.Q),h.d(t);var n=this._element.querySelector(".annotation-container");n.scrollTop=n.scrollHeight-n.clientHeight}}},{key:"deactivateReply",value:function(e){if(this._element){var t=this._element.querySelector(d.i),n=t.parentNode.querySelector(d.n);h.j(t,e),h.c(n),h.g(t)&&t.focus();var i=this._element.querySelector(".annotation-container");i.scrollTop=i.scrollHeight-i.clientHeight}}},{key:"postReply",value:function(){var e=this._element.querySelector(d.i),t=e.value;""!==t.trim()&&(this.emit("annotationcreate",{text:t}),e.value="")}},{key:"showDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".cancel-delete-btn"),r=t.querySelector(".delete-comment-btn");h.c(r),h.d(n),i.focus()}},{key:"hideDeleteConfirmation",value:function(e){var t=this._element.querySelector('[data-annotation-id="'+e+'"]'),n=t.querySelector(".delete-confirmation"),i=t.querySelector(".delete-comment-btn");h.d(i),h.c(n),i.focus()}},{key:"deleteAnnotation",value:function(e){this.emit("annotationdelete",{annotationID:e})}},{key:"element",get:function(){return this._element}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(121),d=n(63),p=n(18),f=n(24),v=n(6),g=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._annotations.find(function(t){return t.annotationID===e});if(i&&(!i.permissions||i.permissions.can_delete)){this._annotations=this._annotations.filter(function(t){return t.annotationID!==e});var r=this._annotations.length>0&&this._annotations[0].permissions&&this._annotations[0].permissions.can_delete;p.e(this._annotations)&&!r?this.cancelFirstComment():0===this._annotations.length||p.e(this._annotations)?this.destroy():this._dialog&&this._dialog.removeAnnotation(e),n&&this._annotationService.delete(e).then(function(){r=t._annotations.length>0&&t._annotations[0].permissions&&t._annotations[0].permissions.can_delete,p.e(t._annotations)&&r&&t._annotationService.delete(t._annotations[0].annotationID),0===t._annotations.length&&t.emit("threadcleanup")}).catch(function(){t.emit("annotationdeleteerror")})}}},{key:"cancelFirstComment",value:function(){}},{key:"show",value:function(){}},{key:"createDialog",value:function(){}},{key:"setup",value:function(){0===this._annotations.length?this._state=f.c:this._state=f.g,this.createDialog(),this.bindCustomListenersOnDialog(),this.setupElement()}},{key:"setupElement",value:function(){this._element=this.createElement(),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element&&(this._element.addEventListener("click",this.showDialog),this._element.addEventListener("mouseenter",this.showDialog),this._element.addEventListener("mouseleave",this.mouseoutHandler))}},{key:"unbindDOMListeners",value:function(){this._element&&(this._element.removeEventListener("click",this.showDialog),this._element.removeEventListener("mouseenter",this.showDialog),this._element.removeEventListener("mouseleave",this.mouseoutHandler))}},{key:"bindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.addListener("annotationcreate",this.createAnnotation),this._dialog.addListener("annotationcancel",this.destroy),this._dialog.addListener("annotationdelete",this.deleteAnnotationWithID))}},{key:"unbindCustomListenersOnDialog",value:function(){this._dialog&&(this._dialog.removeAllListeners("annotationcreate"),this._dialog.removeAllListeners("annotationcancel"),this._dialog.removeAllListeners("annotationdelete"))}},{key:"createElement",value:function(){var e=document.createElement("button");return e.classList.add("bp-point-annotation-btn"),e.setAttribute("data-type","annotation-indicator"),e.innerHTML=v.p,e}},{key:"mouseoutHandler",value:function(){0!==this._annotations.length&&this.hideDialog()}},{key:"saveAnnotationToThread",value:function(e){this._annotations.push(e),this._dialog&&this._dialog.addAnnotation(e)}},{key:"createAnnotationData",value:function(e,t){return{fileVersionID:this._fileVersionID,type:e,text:t,location:this._location,user:this._annotationService.user,threadID:this._threadID,thread:this._thread}}},{key:"createAnnotation",value:function(e){this.saveAnnotation(f.b,e.text)}},{key:"deleteAnnotationWithID",value:function(e){this.deleteAnnotation(e.annotationID)}},{key:"location",get:function(){return this._location}},{key:"threadID",get:function(){return this._threadID}},{key:"thread",get:function(){return this._thread}},{key:"type",get:function(){return this._type}},{key:"state",get:function(){return this._state}}]),t}(l.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[t,o/r-e];case h:return[a/r-e,o/r-t];case d:return[a/r-t,e]}return[e,t]}function r(e,t,n,i,r){var o=i.height,a=i.width;switch(n){case u:return[a/r-t,e];case h:return[a/r-e,o/r-t];case d:return[t,o/r-e]}return[e,t]}function o(e,t){return t?e.offsetLeft-3*c/2:e.offsetTop}function a(e,t){var n=t.querySelector("img"),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),u=s.b(t),d=a.top-r.top,p=a.left-r.left,f=Number(n.getAttribute("data-rotation-angle")),v=Math.abs(f)%180==90,g=i(e.x,e.y,f,a,u),m=l(g,2),y=m[0],b=m[1],E=o(n,v),w={x:e.dimensions.y,y:e.dimensions.x},_=v?w:e.dimensions,O=s.k(_,a,u,E);return O&&(y*=O.x,b*=O.y),y*=u,b*=u,p>=0&&(y+=p),d>=0&&(b+=d),f===h&&(b-=c/2),[y,b]}var s=n(18);t.a=r,t.b=a;var l=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=15,u=-90,h=-180,d=-270},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(13),l=n.n(s),c=n(0),u=n.n(c),h=n(53),d=n(29),p=n(6),f=n(1),v=n(83),g=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.classList.add(u.m),t.textContent=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("button");return t.textContent=e,t.classList.add(h.K),t}function a(){var e=document.createElement("input");return e.type="checkbox",e}function s(){var e=document.createElement("div");return e.classList.add(u.n),e.classList.add(u.o),e.classList.add(u.p),e}function l(e){var t=document.createElement("div");if(t.classList.add(u.q),e){var n=r(e);t.appendChild(n)}return t}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=l(e),r=document.createElement("div");r.classList.add(h.L);var a=document.createElement("div");a.classList.add(h.M),a.innerHTML="
                                            \n \n
                                              \n
                                              \n \n
                                              ';var s=o(t);s.addEventListener("click",function(){a.classList.toggle(h.l)});var c=a.querySelector("ul");return n.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a");n.classList.add(h.P),n.textContent=e.text,n.addEventListener("click",function(){s.textContent=e.text,a.classList.toggle(h.l),e.callback()}),t.appendChild(n),c.appendChild(t)}),r.appendChild(s),r.appendChild(a),i.appendChild(r),i}var u=n(41),h=n(1);n.d(t,"e",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return p});var d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;if(!t){var n=document.querySelector(".bp-header");t=n?n.querySelector(".bp-btn-annotate"):null}this.destroyPendingThreads(),this.isInPointMode()?(this.notification.hide(),this.emit("pointmodeexit"),this._annotatedElement.classList.remove(p.a),t&&t.classList.remove(f.Q),this.unbindPointModeListeners(),this.bindDOMListeners()):(this.notification.show("在任何位置上按一下,即可新增留言至文件"),this.emit("pointmodeenter"),this._annotatedElement.classList.add(p.a),t&&t.classList.add(f.Q),this.unbindDOMListeners(),this.bindPointModeListeners())}},{key:"getLocationFromEvent",value:function(e,t){}},{key:"createAnnotationThread",value:function(e,t,n){}},{key:"setupAnnotations",value:function(){this._threads={},this.bindDOMListeners(),this.bindCustomListenersOnService(this._annotationService)}},{key:"fetchAnnotations",value:function(){var e=this;return this._threads={},this._annotationService.getThreadMap(this._fileVersionID).then(function(t){Object.keys(t).forEach(function(n){var i=t[n],r=i[0],o=e.createAnnotationThread(i,r.location,r.type);e.bindCustomListenersOnThread(o)})})}},{key:"bindDOMListeners",value:function(){}},{key:"unbindDOMListeners",value:function(){}},{key:"bindCustomListenersOnService",value:function(){var e=this,t=this._annotationService;t&&t instanceof d.a&&t.addListener("annotationerror",function(t){var n="";switch(t.reason){case"read":n="很抱歉,無法載入此檔案的註解。";break;case"create":n="很抱歉,無法建立註解。",e.showAnnotations();break;case"delete":n="很抱歉,無法刪除註解。",e.showAnnotations();break;case"authorization":n="您的工作階段已到期。請重新整理頁面。"}e.notification.show(n)})}},{key:"unbindCustomListenersOnService",value:function(){var e=this._annotationService;e&&e instanceof d.a&&e.removeAllListeners("annotationerror")}},{key:"bindCustomListenersOnThread",value:function(e){var t=this;e.addListener("threaddeleted",function(){var n=e.location.page||1;t._threads[n]instanceof Array&&(t._threads[n]=t._threads[n].filter(function(t){return t.threadID!==e.threadID}))}),e.addListener("threadcleanup",function(){t.unbindCustomListenersOnThread(e)})}},{key:"unbindCustomListenersOnThread",value:function(e){e.removeAllListeners("threaddeleted"),e.removeAllListeners("threadcleanup")}},{key:"bindPointModeListeners",value:function(){this._annotatedElement.addEventListener("click",this.pointClickHandler)}},{key:"unbindPointModeListeners",value:function(){this._annotatedElement.removeEventListener("click",this.pointClickHandler)}},{key:"pointClickHandler",value:function(e){if(e.stopPropagation(),!this.destroyPendingThreads()){var t=this.getLocationFromEvent(e,p.b);if(!t)return void this.togglePointModeHandler();this.togglePointModeHandler();var n=this.createAnnotationThread([],t,p.b);n.show(),this.bindCustomListenersOnThread(n)}}},{key:"addThreadToMap",value:function(e){var t=e.location.page||1;this._threads[t]=this._threads[t]||[],this._threads[t].push(e)}},{key:"isInPointMode",value:function(){return this._annotatedElement.classList.contains(p.a)}},{key:"destroyPendingThreads",value:function(){var e=this,t=!1;return Object.keys(this._threads).forEach(function(n){e._threads[n].forEach(function(e){e.state===p.c&&(t=!0,e.destroy())})}),t}}]),t}(l.a))||a;t.a=g},function(e,t,n){"use strict";function i(e,t){var n=b.firstElementChild;if(n.className=m.r,E.classList.add(m.s),"dark"===e&&b.classList.add(m.t),t){n.querySelector(m.u).classList.add(m.v);var i=n.querySelector(m.w);i.src=t,i.classList.remove(m.v)}}function r(){var e=b.querySelector(m.x);if(e){e.querySelector(m.y).innerHTML=y.a;e.querySelector(m.z).textContent="正在產生預覽...";e.querySelector(m.A).textContent="下載檔案"}}function o(){E&&E.removeEventListener("mousemove",O),b&&(b.innerHTML=""),document.removeEventListener("keydown",k)}function a(e,t,a,s,l){return b=e.container,w=a,_=s,O=l,k=t,"string"==typeof b?b=document.querySelector(b):b||(b=document.body),o(),n.i(g.m)(b,v.a),b=b.querySelector(m.B),E=b.querySelector(m.m),"none"!==e.header&&i(e.header,e.logoUrl),r(),document.addEventListener("keydown",k),b}function s(e,t){if(b){var n=b.querySelector(m.C),i=b.querySelector(m.D);if(n&&i&&(n.title="上一個檔案",i.title="下一個檔案",n.classList.add(m.v),i.classList.add(m.v),n.removeEventListener("click",w),i.removeEventListener("click",_),E.removeEventListener("mousemove",O),!(t.length<2))){n.addEventListener("click",w),i.addEventListener("click",_),E.addEventListener("mousemove",O);var r=t.indexOf(e);r>0&&n.classList.remove(m.v),r1&&void 0!==arguments[1]?arguments[1]:[],r=c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e))return r}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(33),h=n(82),d=n(64),p=n(9),f=n(5),v=n(29),g=n(126),m=n(308),y=(n.n(m),function(){function e(e,t){for(var n=0;n\n
                                              \n
                                              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"print",value:function(){var e=this;if(!this.printBlob)return this.fetchPrintBlob(this.pdfUrl).then(this.print),void(this.printDialogTimeout=setTimeout(function(){e.printPopup.show("準備列印中...","列印",function(){e.printPopup.hide(),e.browserPrint()}),e.printPopup.disableButton(),e.printDialogTimeout=null},T));this.printDialogTimeout||!this.printPopup.isVisible()?(clearTimeout(this.printDialogTimeout),this.browserPrint()):(this.printPopup.enableButton(),this.printPopup.messageEl.textContent="準備就緒,可開始列印。",this.printPopup.loadingIndicator.classList.add(E.v),this.printPopup.printCheckmark.classList.remove(E.v))}},{key:"resize",value:function(){if(this.pdfViewer&&this.pdfViewer.pageViewsReady){var e=this.pdfViewer.currentPageNumber;this.pdfViewer.currentScaleValue=this.pdfViewer.currentScaleValue||"auto",this.pdfViewer.update(),this.setPage(e),this.annotator&&this.annotator.setScale(this.pdfViewer.currentScale),P(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}}},{key:"previousPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber-1)}},{key:"nextPage",value:function(){this.setPage(this.pdfViewer.currentPageNumber+1)}},{key:"setPage",value:function(e){e<=0||e>this.pdfViewer.pagesCount||(this.pdfViewer.currentPageNumber=e,this.cachePage(this.pdfViewer.currentPageNumber))}},{key:"getCachedPage",value:function(){var e=1;if(f.a.has(S)){e=f.a.get(S)[this.options.file.id]||e}return e}},{key:"cachePage",value:function(e){var t={};f.a.has(S)&&(t=f.a.get(S)),t[this.options.file.id]=e,f.a.set(S,t,!0)}},{key:"checkPaginationButtons",value:function(){var e=this.pdfViewer.pagesCount,t=this.pdfViewer.currentPageNumber,n=this.containerEl.querySelector(".bp-doc-page-num"),i=this.containerEl.querySelector(".bp-previous-page"),r=this.containerEl.querySelector(".bp-next-page"),o="Safari"===p.a.getName()&&y.a.isFullscreen(this.containerEl);n&&(n.disabled=!!(e<=1||o)),i&&(i.disabled=1===t),r&&(t===this.pdfViewer.pagesCount?r.disabled=!0:r.disabled=!1)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n*x).toFixed(3),n=Math.min(j,n),t-=1}while(t>0&&n0&&void 0!==arguments[0]?arguments[0]:1,t=e,n=this.pdfViewer.currentScale;do{n=(n/x).toFixed(3),n=Math.max(A,n),t-=1}while(t>0&&n>A);this.pdfViewer.currentScale!==n&&this.emit("zoom",{zoom:n,canZoomOut:n>A,canZoomIn:!0}),this.setScale(n)}},{key:"setScale",value:function(e){this.annotator&&this.annotator.setScale(e),this.pdfViewer.currentScaleValue=e}},{key:"rotateLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-90,t=this.pdfViewer.currentPageNumber;this.pageRotation=this.pageRotation||0,this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfViewer.update(),this.setPage(t)}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e&&"highlight"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"getPointModeClickHandler",value:function(){return this.isAnnotatable("point")?this.annotator.togglePointModeHandler:null}},{key:"onKeydown",value:function(e){switch(e){case"ArrowLeft":this.previousPage();break;case"ArrowRight":this.nextPage();break;case"[":this.previousPage();break;case"]":this.nextPage();break;default:return!1}return!0}},{key:"initViewer",value:function(e){var t=this;this.pdfViewer=new PDFJS.PDFViewer({container:this.docEl,linkService:new PDFJS.PDFLinkService,enhanceTextSelection:!0});var n=this.getViewerOption("rangeChunkSize");return n||(n="en-US"===this.options.location.locale?D:H),this.bindDOMListeners(),this.pdfLoadingTask=PDFJS.getDocument({url:e,rangeChunkSize:n}),this.pdfLoadingTask.then(function(n){t.pdfViewer.setDocument(n);var i=t.pdfViewer.linkService;i instanceof PDFJS.PDFLinkService&&(i.setDocument(n,e),i.setViewer(t.pdfViewer))}).catch(function(e){var n=e;e instanceof Error&&(n.displayMessage="很抱歉,無法載入預覽。此文件可能受到保護。"),t.triggerError(e)})}},{key:"setupPdfjs",value:function(){var e=this.options,t=e.file,i=e.location,r=n.i(_.i)(i);PDFJS.workerSrc=r("third-party/doc/pdf.worker.min.js"),PDFJS.cMapUrl=i.staticBaseURI+"third-party/doc/cmaps/",PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK,PDFJS.disableRange=PDFJS.disableRange||p.a.isIOS()&&"Safari"===p.a.getName(),PDFJS.disableRange=PDFJS.disableRange||t.watermark_info&&t.watermark_info.is_watermarked,PDFJS.disableTextLayer=!n.i(w.c)(t,E.a)}},{key:"initAnnotations",value:function(){var e=this;this.setupPageIds();var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=r.file_version.id,l=n.i(w.c)(r,E.e)&&!p.a.isMobile(),c=new h.a({apiHost:i,fileId:r.id,token:a,canAnnotate:l});this.annotator=new g.a({annotatedElement:this.docEl,annotationService:c,fileVersionID:s,locale:o.locale}),this.annotator.init(),this.annotator.setScale(this.pdfViewer.currentScale),this.annotator.addListener("pointmodeenter",function(){e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.controls&&e.controls.enable()})}},{key:"setupPageIds",value:function(){var e=this.containerEl.querySelectorAll(".page");[].forEach.call(e,function(e){var t=e.dataset.pageNumber;t&&(e.id="bp-page-"+t)})}},{key:"initPageNumEl",value:function(){var e=this.controls.controlsEl.querySelector(".bp-doc-page-num");e.querySelector(".bp-doc-total-pages").textContent=this.pdfViewer.pagesCount,this.pageNumInputEl=e.querySelector(".bp-doc-page-num-input"),this.currentPageEl=e.querySelector(".bp-doc-current-page")}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(_.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=p.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},R)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}},{key:"loadUI",value:function(){this.controls=new v.a(this.containerEl),this.bindControlListeners(),this.initPageNumEl()}},{key:"showPageNumInput",value:function(){this.controls.controlsEl.classList.add(M),this.pageNumInputEl.value=this.currentPageEl.textContent,this.pageNumInputEl.focus(),this.pageNumInputEl.select(),this.pageNumInputEl.addEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.addEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"hidePageNumInput",value:function(){this.controls.controlsEl.classList.remove(M),this.pageNumInputEl.removeEventListener("blur",this.pageNumInputBlurHandler),this.pageNumInputEl.removeEventListener("keydown",this.pageNumInputKeydownHandler)}},{key:"updateCurrentPage",value:function(e){var t=e,n=this.pdfViewer.pagesCount;e>n?t=n:e<1&&(t=1),this.pageNumInputEl&&(this.pageNumInputEl.value=t),this.currentPageEl&&(this.currentPageEl.textContent=t),this.checkPaginationButtons()}},{key:"bindDOMListeners",value:function(){this.docEl.addEventListener("pagesinit",this.pagesinitHandler),this.docEl.addEventListener("pagerendered",this.pagerenderedHandler),this.docEl.addEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.addEventListener("pagechange",this.pagechangeHandler),this.docEl.addEventListener("scroll",this.scrollHandler),y.a.addListener("enter",this.enterfullscreenHandler),y.a.addListener("exit",this.exitfullscreenHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.addEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.addEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.addEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.addEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.addEventListener("touchend",this.mobileZoomEndHandler)))}},{key:"unbindDOMListeners",value:function(){this.docEl&&(this.docEl.removeEventListener("pagesinit",this.pagesinitHandler),this.docEl.removeEventListener("pagerendered",this.pagerenderedHandler),this.docEl.removeEventListener("pagechange",this.pagechangeHandler),this.docEl.removeEventListener("textlayerrendered",this.textlayerrenderedHandler),this.docEl.removeEventListener("scroll",this.scrollHandler),p.a.isMobile()&&(p.a.isIOS()?(this.docEl.removeEventListener("gesturestart",this.mobileZoomStartHandler),this.docEl.removeEventListener("gestureend",this.mobileZoomEndHandler)):(this.docEl.removeEventListener("touchstart",this.mobileZoomStartHandler),this.docEl.removeEventListener("touchmove",this.mobileZoomChangeHandler),this.docEl.removeEventListener("touchend",this.mobileZoomEndHandler)))),y.a.removeListener("enter",this.enterfullscreenHandler),y.a.removeListener("exit",this.exitfullscreenHandler)}},{key:"bindControlListeners",value:function(){}},{key:"pageNumInputBlurHandler",value:function(e){var t=e.target,n=parseInt(t.value,10);isNaN(n)||this.setPage(n),this.hidePageNumInput()}},{key:"pageNumInputKeydownHandler",value:function(e){switch(n.i(_.f)(e)){case"Enter":"Explorer"===p.a.getName()?this.docEl.focus():e.target.blur(),e.stopPropagation(),e.preventDefault();break;case"Esc":this.hidePageNumInput(),this.docEl.focus(),e.stopPropagation(),e.preventDefault()}}},{key:"pagesinitHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.isAnnotatable()&&this.initAnnotations(),this.loadUI(),this.checkPaginationButtons(),this.setPage(this.getCachedPage()),this.docEl.classList.add(E.V),this.loaded||(this.loaded=!0,this.emit("load",{numPages:this.pdfViewer.pagesCount,endProgress:!1}))}},{key:"pagerenderedHandler",value:function(e){var t=e.detail?e.detail.pageNumber:void 0;this.annotator&&(t?this.annotator.renderAnnotationsOnPage(t):this.annotator.renderAnnotations()),PDFJS.disableTextLayer&&this.textlayerrenderedHandler(),t&&(this.emit("pagerender",t),this.somePageRendered||(this.hidePreload(),this.emit("progressend"),this.somePageRendered=!0))}},{key:"textlayerrenderedHandler",value:function(){this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"pagechangeHandler",value:function(e){var t=e.pageNumber;this.updateCurrentPage(t),this.loaded&&this.cachePage(t),this.emit("pagefocus",t)}},{key:"enterfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="page-fit",this.resize()}},{key:"exitfullscreenHandler",value:function(){this.pdfViewer.currentScaleValue="auto",this.resize()}}]),t}(d.a))||a;t.a=V},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(9),d=n(6),p=n(1),f=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];this.adapting=e,this.player.configure({abr:{enabled:e}})}},{key:"handleQuality",value:function(){var e=u.a.get("media-quality");switch(e){case"hd":this.enableHD();break;case"sd":this.enableSD();break;case"auto":default:this.enableAdaptation()}e&&this.emit("qualitychange",e)}},{key:"adaptationHandler",value:function(){var e=this.getActiveTrack();e.id===this.hdRepresentation.id?this.wrapperEl.classList.add(y):this.wrapperEl.classList.remove(y),this.isLoaded()&&(this.adapting&&this.emit("adaptation",e.bandwidth),this.hideLoadingIcon())}},{key:"addEventListenersForMediaControls",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addEventListenersForMediaControls",this).call(this),this.mediaControls.addListener("qualitychange",this.handleQuality)}},{key:"loadeddataHandler",value:function(){this.isDestroyed()||(this.calculateVideoDimensions(),this.loadUI(),this.loadFilmStrip(),this.resize(),this.handleVolume(),this.startBandwidthTracking(),this.handleQuality(),this.showPlayButton(),this.loaded=!0,this.emit("load"),this.showMedia())}},{key:"loadFilmStrip",value:function(){var e=n.i(p.g)(this.options.file,"filmstrip");if(e){var t=this.createContentUrlWithAuthParams(e.content.url_template);this.filmstripStatus=this.getRepStatus(e),this.mediaControls.initFilmstrip(t,this.filmstripStatus,this.aspect)}}},{key:"calculateVideoDimensions",value:function(){var e=this.player.getTracks(),t=e.reduce(function(e,t){return e.width>t.width?e:t}),n=e.reduce(function(e,t){return e.width=1?this.mediaEl.style.width=i.width+"px":this.mediaEl.style.width=i.height*this.aspect+"px";else if(e<=i.width&&n<=i.height)this.aspect>=1?this.mediaEl.style.width=e+"px":this.mediaEl.style.width=n*this.aspect+"px";else{var r=(i.height-n)/n,o=e+e*r,a=(i.width-e)/e,s=n+n*a;s<=i.height?this.mediaEl.style.width=i.width+"px":o<=i.width&&(this.mediaEl.style.width=i.height*this.aspect+"px")}g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resize",this).call(this)}},{key:"getBandwidthInterval",value:function(){if(!this.isDestroyed()&&this.player&&this.player.getStats&&!this.mediaEl.paused&&!this.mediaEl.ended){var e=this.player.getStats(),t=e.estimatedBandwidth,n=e.streamBandwidth,i=e.switchHistory;this.bandwidthHistory.push({bandwidth:t,stream:n}),this.switchHistory.push({switchHistory:i,stream:n}),this.statsEl&&(this.statsEl.textContent=Math.round(t/1e3)+" kbps")}}},{key:"startBandwidthTracking",value:function(){this.statsIntervalId=setInterval(this.getBandwidthInterval,3e3)}},{key:"removeStats",value:function(){this.statsEl&&this.mediaContainerEl&&this.mediaContainerEl.removeChild(this.statsEl),this.statsEl=void 0}},{key:"toggleStats",value:function(){if(this.statsEl)return void this.removeStats();this.statsEl=this.mediaContainerEl.appendChild(document.createElement("div")),this.statsEl.className="bp-media-dash-stats",this.statsEl.textContent="?!? kbps"}},{key:"onKeydown",value:function(e){return"Shift+I"===e&&this.player?(this.toggleStats(),!0):g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onKeydown",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(152),u=n.n(c),h=n(26),d=n(40),p=n(9),f=n(248),v=n(1),g=function(){function e(e,t){for(var n=0;n0&&this.emit("ratechange",e),this.mediaEl.playbackRate=e}},{key:"handleVolume",value:function(){var e=d.a.has(w)?d.a.get(w):E;this.mediaEl.volume!==e&&(this.debouncedEmit("volume",e),this.mediaEl.volume=e)}},{key:"loadUI",value:function(){this.mediaControls=new f.a(this.mediaContainerEl,this.mediaEl),this.mediaControls.setDuration(this.mediaEl.duration),this.addEventListenersForMediaControls(),this.addEventListenersForMediaElement()}},{key:"addEventListenersForMediaControls",value:function(){this.mediaControls.addListener("timeupdate",this.setMediaTime),this.mediaControls.addListener("volumeupdate",this.setVolume),this.mediaControls.addListener("toggleplayback",this.togglePlay),this.mediaControls.addListener("togglemute",this.toggleMute),this.mediaControls.addListener("ratechange",this.handleRate)}},{key:"setTimeCode",value:function(){this.mediaControls.setTimeCode(this.mediaEl.currentTime)}},{key:"setMediaTime",value:function(e){this.mediaEl.currentTime=e}},{key:"setVolume",value:function(e){d.a.set(w,e),this.handleVolume()}},{key:"updateVolumeIcon",value:function(){this.mediaControls.updateVolumeIcon(this.mediaEl.volume)}},{key:"playingHandler",value:function(){this.mediaControls.showPauseIcon(),this.hideLoadingIcon(),this.handleRate(),this.handleVolume()}},{key:"progressHandler",value:function(){this.mediaControls.updateProgress()}},{key:"pauseHandler",value:function(){this.mediaControls.showPlayIcon()}},{key:"seekHandler",value:function(){this.hideLoadingIcon(),this.debouncedEmit("seeked",this.mediaEl.currentTime)}},{key:"showPlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.remove(v.v)}},{key:"hidePlayButton",value:function(){this.playButtonEl&&this.playButtonEl.classList.add(v.v)}},{key:"resetPlayIcon",value:function(){this.mediaControls.setTimeCode(0),this.hideLoadingIcon(),this.pauseHandler()}},{key:"togglePlay",value:function(){this.mediaEl.paused?(this.mediaEl.play(),this.emit("play"),this.handleRate(),this.handleVolume()):(this.mediaEl.pause(),this.emit("pause"))}},{key:"toggleMute",value:function(){this.mediaEl.volume?(this.oldVolume=this.mediaEl.volume,d.a.set(w,0)):d.a.set(w,this.oldVolume),this.handleVolume()}},{key:"hideLoadingIcon",value:function(){this.containerEl&&this.containerEl.classList.remove(v.R)}},{key:"showLoadingIcon",value:function(){this.containerEl&&this.mediaEl&&!this.mediaEl.paused&&!this.mediaEl.ended&&(this.containerEl.classList.add(v.R),this.hidePlayButton())}},{key:"addEventListenersForMediaElement",value:function(){this.mediaEl.addEventListener("timeupdate",this.setTimeCode),this.mediaEl.addEventListener("progress",this.progressHandler),this.mediaEl.addEventListener("volumechange",this.updateVolumeIcon),this.mediaEl.addEventListener("playing",this.playingHandler),this.mediaEl.addEventListener("pause",this.pauseHandler),this.mediaEl.addEventListener("ended",this.resetPlayIcon),this.mediaEl.addEventListener("seeked",this.seekHandler)}},{key:"quickSeek",value:function(e){var t=this.mediaEl.currentTime+e;t=Math.max(0,Math.min(t,this.mediaEl.duration)),this.setMediaTime(t)}},{key:"increaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume+_))/100;e=Math.min(1,e),this.setVolume(e)}},{key:"decreaseVolume",value:function(){var e=Math.round(100*(this.mediaEl.volume-_))/100;e=Math.max(0,e),this.setVolume(e)}},{key:"onKeydown",value:function(e){if(!this.mediaControls||this.mediaControls.isFocused())return!1;switch(e.toLowerCase()){case"space":case"k":this.togglePlay();break;case"arrowleft":this.quickSeek(-5);break;case"j":this.quickSeek(-10);break;case"arrowright":this.quickSeek(5);break;case"l":this.quickSeek(10);break;case"0":case"home":this.setMediaTime(0);break;case"arrowup":this.increaseVolume();break;case"arrowdown":this.decreaseVolume();break;case"shift+>":this.mediaControls.increaseSpeed();break;case"shift+<":this.mediaControls.decreaseSpeed();break;case"f":case"shift+f":this.mediaControls.toggleFullscreen();break;case"m":case"shift+m":this.toggleMute();break;default:return!1}return this.mediaControls.show(),!0}}]),t}(h.a))||a;t.a=k},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(130),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;nm;var l=a.truncated?{Range:"bytes=0-"+m}:{};n.i(p.b)(a.createContentUrlWithAuthParams(r),l,"text").then(function(e){if(!a.isDestroyed()){var t=e;a.truncated&&(t+="..."),d.c.indexOf(o)===-1?a.finishLoading(t,!1):a.initHighlightJs(t)}})},s=o,r(a,s)}return o(t,e),f(t,[{key:"destroy",value:function(){if(this.textEl){var e=this.textEl.querySelector(".bp-btn-download");e&&e.removeEventListener("click",this.download.bind(this))}this.printIframe=null,v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){this.setup(),v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var e=this.loadAssets(this.getJS(),this.getCSS());return Promise.all([e,this.getRepStatus().getPromise()]).then(this.postLoad).catch(this.handleAssetError)}},{key:"prefetch",value:function(e){var t=e.assets,i=void 0===t||t,r=e.content,o=void 0===r||r;i&&this.prefetchAssets(this.getJS(),this.getCSS());var a=this.options.representation;if(o&&this.isRepresentationReady(a)){var s=a.content.url_template;n.i(p.b)(this.createContentUrlWithAuthParams(s),"any")}}},{key:"print",value:function(){var e=this;if(!this.printReady)return this.preparePrint(this.getCSS().concat("preview.css")),this.printPopup.show("準備列印中...","列印",function(){e.printPopup.hide(),e.printIframe()}),void this.printPopup.disableButton();this.printIframe(),this.emit("printsuccess")}},{key:"setup",value:function(){v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setup",this).call(this),this.textEl=this.containerEl.appendChild(document.createElement("pre")),this.textEl.className="bp-text bp-text-plain hljs",this.textEl.classList.add(u.v),this.codeEl=this.textEl.appendChild(document.createElement("code")),this.codeEl.classList.add(this.options.file.extension),this.truncated=!1,this.initPrint()}},{key:"getJS",value:function(){return E}},{key:"getCSS",value:function(){return w}},{key:"finishLoading",value:function(e,t){t?this.codeEl.innerHTML=e:this.codeEl.textContent=e,this.loadUI(),this.textEl.classList.remove(u.v),this.loaded=!0,this.emit("load"),this.truncated&&this.showTruncatedDownloadButton(),this.workerSrc&&URL.revokeObjectURL(this.workerSrc)}},{key:"initHighlightJs",value:function(e){var t=this,i=new Blob([g],{type:"application/javascript"});this.workerSrc=URL.createObjectURL(i);var r=new Worker(this.workerSrc);r.onmessage=function(e){t.finishLoading(e.data,!0)};var o=n.i(p.i)(this.options.location),a=o("third-party/text/highlight.min.js");r.postMessage({highlightSrc:a,text:e})}},{key:"initPrint",value:function(){this.printPopup=new c.a(this.containerEl);var e=document.createElement("div");e.className="bp-print-check "+u.v,e.innerHTML=h.w.trim();var t=document.createElement("div");t.classList.add("bp-crawler"),t.innerHTML="\n
                                              \n
                                              \n
                                              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"preparePrint",value:function(e){var t=this,i=n.i(p.i)(this.options.location);this.printframe=n.i(p.p)(this.textEl.outerHTML),e.forEach(function(e){t.printframe.contentDocument.head.appendChild(n.i(p.s)(i(e)))}),setTimeout(function(){t.printPopup&&(t.printPopup.enableButton(),t.printPopup.messageEl.textContent="準備就緒,可開始列印。",t.printPopup.loadingIndicator.classList.add(u.v),t.printPopup.printCheckmark.classList.remove(u.v)),t.printReady=!0},y)}},{key:"printIframe",value:function(){this.printframe.contentWindow.focus(),"Explorer"===l.a.getName()||"Edge"===l.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print()}},{key:"showTruncatedDownloadButton",value:function(){var e=document.createElement("div");e.classList.add("bp-text-truncated");var t=document.createElement("p");t.textContent="因大小限制,已截斷此檔案。請下載以檢視整個檔案。";var n=document.createElement("button");n.className="bp-btn bp-btn-primary bp-btn-download",n.textContent="下載檔案",e.appendChild(t),e.appendChild(n),this.textEl.appendChild(e),n.addEventListener("click",this.download.bind(this))}},{key:"download",value:function(){this.emit("download")}}]),t}(s.a);t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(53),u=n(26),h=n(22),d=n(1),p=n(6),f=function(){function e(e,t){for(var n=0;n=t||n<0||P&&i>=m}function u(){var e=_();if(c(e))return h(e);b=setTimeout(u,l(e))}function h(e){return b=void 0,S&&v?r(e):(v=g=void 0,y)}function d(){void 0!==b&&clearTimeout(b),k=0,v=O=g=b=void 0}function p(){return void 0===b?y:h(_())}function f(){var e=_(),n=c(e);if(v=arguments,g=this,O=e,n){if(void 0===b)return o(O);if(P)return b=setTimeout(u,t),r(O)}return void 0===b&&(b=setTimeout(u,t)),y}var v,g,m,y,b,O,k=0,C=!1,P=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(C=!!n.leading,P="maxWait"in n,m=P?E(a(n.maxWait)||0,t):m,S="trailing"in n?!!n.trailing:S),f.cancel=d,f.flush=p,f}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=d.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):h.test(e)?l:+e}var s="Expected a function",l=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=v||g||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,_=function(){return m.Date.now()};e.exports=n}).call(t,n(32))},,function(e,t){e.exports='1\n\n / \n1\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a,s=n(215),l=(n.n(s),n(0)),c=n.n(l),u=n(13),h=n.n(u),d=n(46),p=n.n(d),f=n(335),v=n.n(f),g=n(9),m=n(203),y=n(214),b=n(40),E=n(205),w=n(240),_=n(5),O=n(216),k=n(22),C=n(123),P=n(1),S=n(307),x=(n.n(S),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t||"function"==typeof t)this.previewOptions=Object.assign({},n,{token:t});else{if(!t)throw new Error("Missing Auth Token!");this.previewOptions=Object.assign({},t||{})}this.load(e)}},{key:"hide",value:function(){this.open=!1,this.destroy(),n.i(C.a)(),this.file=void 0}},{key:"updateCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.collection=Array.isArray(e)?e:[],this.previewOptions.collection=this.collection,this.file&&n.i(C.b)(this.file.id,this.collection)}},{key:"updateFileCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;Array.isArray(t)||(t=[e]),t.forEach(function(e){e.watermark_info&&e.watermark_info.is_watermarked||n.i(k.a)(e)&&n.i(k.b)(e)})}},{key:"getCurrentViewer",value:function(){return this.viewer}},{key:"getCurrentFile",value:function(){return this.file}},{key:"getCurrentCollection",value:function(){return this.collection}},{key:"getViewers",value:function(){var e=[];return this.loaders.forEach(function(t){e=e.concat(t.getViewers())}),e}},{key:"disableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){t.disabledViewers[e]=1}):e&&(this.disabledViewers[e]=1)}},{key:"enableViewers",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){delete t.disabledViewers[e]}):e&&delete this.disabledViewers[e]}},{key:"disableHotkeys",value:function(){this.options.useHotkeys=!1}},{key:"enableHotkeys",value:function(){this.options.useHotkeys=!0}},{key:"resize",value:function(){this.viewer&&"function"==typeof this.viewer.resize&&this.viewer.resize()}},{key:"print",value:function(){n.i(k.c)(this.file,P.a)&&n.i(k.d)(this.viewer,"print")&&this.viewer.print()}},{key:"download",value:function(){n.i(k.c)(this.file,P.a)&&n.i(_.b)(n.i(k.e)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(function(e){n.i(_.c)(e.download_url)})}},{key:"updateToken",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.previewOptions.token=e,t&&this.load(this.file)}},{key:"prefetch",value:function(e){var t=e.fileId,n=e.token,i=e.sharedLink,r=void 0===i?"":i,o=e.sharedLinkPassword,a=void 0===o?"":o,s=e.preload,l=void 0!==s&&s,c=void 0,u=void 0,h=void 0;try{if(c=b.a.get(t),u=this.getLoader(c),!(h=u.determineViewer(c)))return}catch(e){return}var d={viewer:h,file:c,token:n,representation:u.determineRepresentation(c,h)};l&&(d.sharedLink=r,d.sharedLinkPassword=a);var p=new h.CONSTRUCTOR(this.createViewerOptions(d));"function"==typeof p.prefetch&&p.prefetch({assets:!0,preload:l||p.getViewerOption("preload"),content:!l})}},{key:"prefetchViewers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.getViewers().filter(function(e){return t.indexOf(e.NAME)!==-1}).forEach(function(t){var n=new t.CONSTRUCTOR(e.createViewerOptions({viewer:t}));"function"==typeof n.prefetch&&n.prefetch({assets:!0,preload:!1,content:!1})})}},{key:"load",value:function(e){this.destroy(),this.open=!0,this.logger=new m.a(this.location.locale),clearTimeout(this.retryTimeout);var t=this.file?this.file.id:void 0;this.file="string"==typeof e?b.a.get(e)||{id:e}:e,this.file.id===t?this.retryCount+=1:this.retryCount=0,n.i(O.a)(this.file.id,this.previewOptions.token).then(this.loadPreviewWithTokens).catch(this.triggerFetchError)}},{key:"loadPreviewWithTokens",value:function(e){if(this.retryCount>0)return void this.loadFromServer();this.parseOptions(this.previewOptions,e),this.container=n.i(C.c)(this.options,this.keydownHandler,this.navigateLeft,this.navigateRight,this.getGlobalMousemoveHandler()),n.i(C.d)(),this.startProgressBar(),n.i(C.b)(this.file.id,this.collection),n.i(k.b)(this.file),0===this.collection.length&&(this.collection=[this.file.id]),n.i(k.a)(this.file)?this.loadFromCache():this.loadFromServer()}},{key:"parseOptions",value:function(e,t){var n=this,i=Object.assign({},e);this.options={},this.options.container=i.container,this.options.token=t[this.file.id],this.options.sharedLink=i.sharedLink,this.options.sharedLinkPassword=i.sharedLinkPassword,this.options.apiHost=i.apiHost?i.apiHost.replace(/\/$/,""):P.b,this.options.appHost=i.appHost?i.appHost.replace(/\/$/,""):P.c,this.options.header=i.header||"light",this.options.logoUrl=i.logoUrl||"",this.options.showDownload=!!i.showDownload,this.options.showAnnotations=!!i.showAnnotations,this.options.useHotkeys=i.useHotkeys!==!1,this.collection=i.collection||[],this.options.viewers=i.viewers||{},this.loaders=(i.loaders||[]).concat(y.a),Object.keys(this.options.viewers).forEach(function(e){var t=n.options.viewers[e].disabled;t===!0?n.disableViewers(e):t===!1&&n.enableViewers(e)})}},{key:"createViewerOptions",value:function(e){return v()(Object.assign({location:this.location},this.options,e))}},{key:"loadFromCache",value:function(){this.logger.setCached(),this.loadViewer(),this.loadFromServer()}},{key:"loadFromServer",value:function(){n.i(_.b)(n.i(k.f)(this.file.id,this.options.apiHost),this.getRequestHeaders()).then(this.handleLoadResponse).catch(this.triggerFetchError)}},{key:"handleLoadResponse",value:function(e){if(this.open&&(!this.file||this.file.id===e.id))try{this.file=e,this.logger.setFile(e);var t=b.a.get(e.id),i=e.watermark_info&&e.watermark_info.is_watermarked,r=!t||!t.file_version||t.file_version.sha1!==e.file_version.sha1;i?b.a.unset(e.id):n.i(k.b)(e),(r||i)&&(this.logger.setCacheStale(),this.loadViewer())}catch(e){this.triggerError(e instanceof Error?e:new Error("很抱歉,無法載入預覽。請重新整理頁面。"))}}},{key:"loadViewer",value:function(){if(this.open){if(!n.i(k.c)(this.file,P.d))throw new Error("很抱歉,您沒有預覽此檔案的權限。");n.i(k.c)(this.file,P.a)&&this.options.showDownload&&n.i(C.e)(this.download);var e=this.getLoader(this.file);if(!e)throw new Error;var t=e.determineViewer(this.file,Object.keys(this.disabledViewers));this.logger.setType(t.NAME);var i=e.determineRepresentation(this.file,t),r=this.createViewerOptions({viewer:t,representation:i,container:this.container,file:this.file});r.logger=this.logger,this.viewer=new t.CONSTRUCTOR(r),this.attachViewerListeners(),this.viewer.load(),this.emit("viewer",this.viewer)}}},{key:"attachViewerListeners",value:function(){var e=this;this.viewer.addListener("error",this.triggerError),this.viewer.addListener("viewerevent",function(t){switch(t.event){case"download":e.download();break;case"reload":e.show(e.file.id,e.previewOptions);break;case"load":e.finishLoading(t.data);break;case"progressend":e.finishProgressBar();break;default:e.emit(t.event,t.data),e.emit("viewerevent",t)}})}},{key:"finishLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.i(k.c)(this.file,P.a)&&this.options.showDownload&&!g.a.isMobile()&&(n.i(C.f)(this.download),n.i(k.d)(this.viewer,"print")&&n.i(C.g)(this.print)),n.i(k.c)(this.file,P.e)&&!g.a.isMobile()&&n.i(k.d)(this.viewer,"isAnnotatable","point")&&n.i(C.h)(this.viewer.getPointModeClickHandler());var t=e.error;t?(this.count.error+=1,this.emit("load",{error:t,metrics:this.logger.done(this.count),file:this.file}),"function"==typeof window.callPhantom&&window.callPhantom(0)):(this.count.success+=1,this.emit("load",{viewer:this.viewer,metrics:this.logger.done(this.count),file:this.file}),this.logPreviewEvent(this.file.id,this.options),"function"==typeof window.callPhantom&&window.callPhantom(1)),e.endProgress!==!1&&this.finishProgressBar(),this.viewer&&this.viewer.containerEl&&this.viewer.containerEl.focus(),n.i(C.i)(),this.prefetchNextFiles()}},{key:"logPreviewEvent",value:function(e,t){var i=this;this.logRetryCount=this.logRetryCount||0;var r=t.apiHost,o=t.token,a=t.sharedLink,s=t.sharedLinkPassword,l=n.i(_.d)({},o,a,s);n.i(_.e)(r+"/2.0/events",l,{event_type:"preview",source:{type:"file",id:e}}).then(function(){i.logRetryCount=0}).catch(function(){if(i.logRetryCount+=1,i.logRetryCount>M)return void(i.logRetryCount=0);clearTimeout(i.logRetryTimeout),i.logRetryTimeout=setTimeout(function(){i.logPreviewEvent(e,t)},D*i.logRetryCount)})}},{key:"triggerFetchError",value:function(){var e=this;if(this.open){if(b.a.unset(this.file.id),this.retryCount>A)return void this.triggerError(new Error("很抱歉,無法載入預覽。請重新整理頁面。"));clearTimeout(this.retryTimeout),this.retryTimeout=setTimeout(function(){e.load(e.file.id)},j*this.retryCount)}}},{key:"getErrorViewer",value:function(){return new w.a(this.createViewerOptions({viewer:{NAME:"Error"},container:this.container,file:this.file}))}},{key:"triggerError",value:function(e){if(this.open){this.open=!1,b.a.unset(this.file.id),this.destroy();var t=e instanceof Error?e.message:"很抱歉,無法載入預覽。此檔案類型可能不受支援。",n=e&&e.displayMessage?e.displayMessage:t;this.viewer=this.getErrorViewer(),this.attachViewerListeners(),this.viewer.load(n)}}},{key:"getRequestHeaders",value:function(e){var t=g.a.canPlayDash()?P.f:P.g,i={"X-Rep-Hints":""+P.h+P.i+P.j+t};return n.i(_.d)(i,e||this.options.token,this.options.sharedLink,this.options.sharedLinkPassword)}},{key:"prefetchNextFiles",value:function(){var e=this;if(!(this.collection.length<2)){this.prefetchedCollection=this.prefetchedCollection||[];var t=this.collection.indexOf(this.file.id),i=this.collection.slice(t+1,t+R+1).filter(function(t){return e.prefetchedCollection.indexOf(t)===-1});0!==i.length&&n.i(O.a)(i,this.previewOptions.token).then(function(t){i.forEach(function(i){var r=t[i];n.i(_.b)(n.i(k.f)(i,e.options.apiHost),e.getRequestHeaders(r)).then(function(t){n.i(k.b)(t),e.prefetchedCollection.push(t.id),e.prefetch({fileId:t.id,token:r})}).catch(function(e){})})}).catch(function(){})}}},{key:"startProgressBar",value:function(){this.progressBar=new E.a(this.container),this.progressBar.start()}},{key:"finishProgressBar",value:function(){this.progressBar&&this.progressBar.finish()}},{key:"getGlobalMousemoveHandler",value:function(){var e=this;return this.throttledMousemoveHandler?this.throttledMousemoveHandler:(this.throttledMousemoveHandler=p()(function(){if(clearTimeout(e.timeoutHandler),e.container){var t=!!e.viewer;e.container.classList.remove(P.k),t&&!e.viewer.allowNavigationArrows()||e.container.classList.add(P.k),e.timeoutHandler=setTimeout(function(){e.container&&e.container.classList.remove(P.k)},T)}},T-500,!0),this.throttledMousemoveHandler)}},{key:"navigateToIndex",value:function(e){var t=this.collection[e];this.emit("navigate",t),this.count.navigation+=1,this.load(t)}},{key:"navigateLeft",value:function(){var e=this.collection.indexOf(this.file.id),t=0===e?0:e-1;t!==e&&this.navigateToIndex(t)}},{key:"navigateRight",value:function(){var e=this.collection.indexOf(this.file.id),t=e===this.collection.length-1?this.collection.length-1:e+1;t!==e&&this.navigateToIndex(t)}},{key:"getLoader",value:function(e){var t=this;return this.loaders.find(function(n){return n.canLoad(e,Object.keys(t.disabledViewers))})}},{key:"keydownHandler",value:function(e){var t=e.target;if(this.options.useHotkeys&&!(!t||H.indexOf(t.nodeName)>-1||"DIV"===t.nodeName&&t.getAttribute("contenteditable"))){var i=!1,r=n.i(_.f)(e);if(r){if(this.viewer&&"function"==typeof this.viewer.onKeydown&&(i=!!this.viewer.onKeydown(r)),!i)switch(r){case"ArrowLeft":this.navigateLeft(),i=!0;break;case"ArrowRight":this.navigateRight(),i=!0}i&&(e.preventDefault(),e.stopPropagation())}}}}]),t}(h.a))||a;N.Preview=new I,e.Box=N,t.default=I}).call(t,n(32))},,function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(9),o=function(){function e(e,t){for(var n=0;n\n \n ').trim(),this.messageEl=this.notificationEl.querySelector("#"+r),this.buttonEl=this.notificationEl.querySelector("button");var o=document.createElement("div");o.className="bp-notifications-wrapper",o.appendChild(this.notificationEl),t.appendChild(o)}return o(e,[{key:"show",value:function(e,t){this.messageEl.textContent=e,this.buttonEl.textContent=t?t:"確定",this.notificationEl.classList.remove(r.v),this.notificationEl.focus(),setTimeout(this.hide,a)}},{key:"hide",value:function(){this.notificationEl.classList.add(r.v)}}]),e}();t.a=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(1),o=function(){function e(e,t){for(var n=0;n=95)return void clearInterval(e.progressInterval);e.progress>=80?e.progress+=Math.random():e.progress+=5*Math.random(),e.updateProgress(e.progress)},l)}},{key:"finish",value:function(){this.hideProgress(),clearInterval(this.progressInterval),this.updateProgress(100)}},{key:"updateProgress",value:function(e){this.progressBarEl&&(this.progressBarEl.style.width=e+"%")}},{key:"showProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.add(r.l)}},{key:"hideProgress",value:function(){this.progressBarEl&&this.progressBarEl.classList.remove(r.l)}}]),e}();t.a=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(70),l=n.n(s),c=n(336),u=(n.n(c),n(337)),h=(n.n(u),n(338)),d=(n.n(h),n(46)),p=n.n(d),f=n(0),v=n.n(f),g=n(122),m=n(9),y=n(208),b=n(210),E=n(18),w=n(24),_=n(54),O=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function e(e,t){for(var n=0;n0&&(r.threadID=e[0].threadID,r.thread=e[0]._thread),i=E.l(n)?new y.a(r):new b.a(r),this.addThreadToMap(i),i}},{key:"renderAnnotationsOnPage",value:function(e){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotationsOnPage",this).call(this,e),this.getHighlightThreadsOnPage(e).forEach(function(e){E.m(e.state)&&e.destroy()})}},{key:"setupAnnotations",value:function(){C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupAnnotations",this).call(this),this._highlighter=l.a.createHighlighter(),this._highlighter.addClassApplier(l.a.createClassApplier("rangy-highlight",{ignoreWhiteSpace:!0,tagNames:["span","a"]}))}},{key:"bindDOMListeners",value:function(){this._annotatedElement.addEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.addEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.addEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.addEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.addEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"unbindDOMListeners",value:function(){this._annotatedElement.removeEventListener("mouseup",this.highlightMouseupHandler),this._annotationService.canAnnotate&&(this._annotatedElement.removeEventListener("dblclick",this.highlightMouseupHandler),this._annotatedElement.removeEventListener("mousedown",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("contextmenu",this.highlightMousedownHandler),this._annotatedElement.removeEventListener("mousemove",this.highlightMousemoveHandler()))}},{key:"bindCustomListenersOnThread",value:function(e){var n=this;C(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindCustomListenersOnThread",this).call(this,e),e.addListener("threaddeleted",function(){n.showHighlightsOnPage(e.location.page)})}},{key:"isInDialogOnPage",value:function(e,t){var n=this.getThreadsOnPage(t),i=!1;return n.some(function(t){return i=_.f(e,t._dialog.element)}),i}},{key:"getThreadsOnPage",value:function(e){return this._threads?this._threads[e]:[]}},{key:"highlightMousedownHandler",value:function(e){var t=this;this._didMouseMove=!1,this._isCreatingHighlight=!0,this._mouseX=e.clientX,this._mouseY=e.clientY,Object.keys(this._threads).forEach(function(e){t.getHighlightThreadsOnPage(e).forEach(function(e){e.onMousedown()})})}},{key:"highlightMousemoveHandler",value:function(){var e=this;return this._throttledHighlightMousemoveHandler?this._throttledHighlightMousemoveHandler:(this._throttledHighlightMousemoveHandler=p()(function(t){var n=_.b(t.target).page,i=e.getHighlightThreadsOnPage(n),r=[];i.forEach(function(e){if(e.state!==w.c&&e.state!==w.o){e.onMousemove(t)&&r.push(e)}}),(Math.abs(t.clientX-e._mouseX)>5||Math.abs(t.clientY-e._mouseY)>5)&&(e._didMouseMove=!0),e._isCreatingHighlight||(r.some(function(e){return w.p.indexOf(e.state)>1})?(e.useDefaultCursor(),clearTimeout(e.cursorTimeout)):e.cursorTimeout=setTimeout(function(){e.removeDefaultCursor()},L),r.forEach(function(e,t){0===t?e.show():e.hideDialog()}))},P),this._throttledHighlightMousemoveHandler)}},{key:"highlightMouseupHandler",value:function(e){m.a.isMobile()||!this._didMouseMove&&"dblclick"!==e.type?this.highlightClickHandler(e):this.highlightCreateHandler(e),this._isCreatingHighlight=!1}},{key:"highlightCreateHandler",value:function(e){if(e.stopPropagation(),!_.g(this._annotatedElement)){var t=_.b(e.target).page;this.getHighlightThreadsOnPage(t).filter(function(e){return w.q.indexOf(e.state)>-1}).forEach(function(e){e.reset()});var n=this.getLocationFromEvent(e,w.d);if(n){var i=this.createAnnotationThread([],n,w.d);i.show(),this.bindCustomListenersOnThread(i)}}}},{key:"highlightClickHandler",value:function(e){var t=!1,n=null;this.getThreadsWithStates(w.f).forEach(function(e){e.type===w.b?e.destroy():e.cancelFirstComment()});var i=_.b(e.target).page;this.getHighlightThreadsOnPage(i).forEach(function(i){var r=i.onClick(e,t);r&&(n=i),t=t||r}),n&&n.show()}},{key:"getThreadsWithStates",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i-1}))}),r}},{key:"useDefaultCursor",value:function(){this._annotatedElement.classList.add("bp-use-default-cursor")}},{key:"removeDefaultCursor",value:function(){this._annotatedElement.classList.remove("bp-use-default-cursor")}},{key:"getHighlightThreadsOnPage",value:function(e){return(this._threads[e]||[]).filter(function(e){return E.l(e.type)})}},{key:"showHighlightsOnPage",value:function(e){var t=this._annotatedElement.querySelector('[data-page-number="'+e+'"]'),n=t.querySelector(".bp-annotation-layer");if(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}this.getHighlightThreadsOnPage(e).forEach(function(e){e.show()})}},{key:"removeRangyHighlight",value:function(e){var t=this._highlighter.highlights;if(Array.isArray(t)){var n=t.filter(function(t){return t.id===e.id});this._highlighter.removeHighlights(n)}}}]),t}(g.a))||a;t.a=R},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=n(1),p=n(24),f=n(5),v=n(6),g=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;nn&&(c=n-b),this._element.style.left=l+"px",this._element.style.top=c+w+"px",h.i(this._annotatedElement,this._element,t.height,c),u.d(this._element)}},{key:"toggleHighlightDialogs",value:function(){var e=this._element.querySelector(".bp-annotation-highlight-dialog"),t=this._element.querySelector(".annotation-container");t.classList.contains(d.v)?(this._element.classList.remove(p.w),u.c(e),this._element.classList.add(p.l),u.d(t),this._hasComments=!0,this._element.querySelector(p.j).classList.add(d.Q)):(this._element.classList.remove(p.l),u.c(t),this._element.classList.add(p.w),u.d(e),this._hasComments=!1);this.position()}},{key:"toggleHighlightCommentsReply",value:function(e){var t=this._element.querySelector(".annotation-container"),n=t.querySelector("[data-section='create']"),i=t.querySelector("[data-section='show']");e?(u.c(n),u.d(i),this.deactivateReply()):(u.c(i),u.d(n),this.activateReply()),this.position()}},{key:"setup",value:function(e){var t=this;this._element||(this._element=document.createElement("div")),e.length>0&&(this._hasComments=""!==e[0].text||e.length>1,this._element.dataset.threadNumber=e[0]._thread);var i=this._hasComments?p.l:p.w;if(this._element.classList.add(i),e.length>0&&this._element.classList.add(p.x),this._element.innerHTML=('\n
                                              \n
                                              \n \n \n \n
                                              \n
                                              \n
                                              \n \n
                                              \n \n \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n \n
                                              \n \n \n
                                              \n
                                              \n
                                              \n ').trim(),u.e(e)&&"0"!==e[0].user.id){var r=this._element.querySelector(".bp-annotation-highlight-label");if(r.textContent=n.i(f.n)("已醒目提示 {1}",[e[0].user.name]),u.d(r),e[0].permissions&&!e[0].permissions.can_delete){var o=this._element.querySelector(".bp-add-highlight-btn");u.c(o)}}e.forEach(function(e){t.addAnnotationElement(e)}),this.bindDOMListeners()}},{key:"bindDOMListeners",value:function(){this._element.addEventListener("mousedown",this.mousedownHandler),this._element.addEventListener("mouseup",this.mouseupHandler),this._element.addEventListener("keydown",this.keydownHandler),this._element.addEventListener("mouseenter",this.mouseenterHandler),this._element.addEventListener("mouseleave",this.mouseleaveHandler)}},{key:"unbindDOMListeners",value:function(){this._element.removeEventListener("mousedown",this.mousedownHandler),this._element.removeEventListener("mouseup",this.mouseupHandler),this._element.removeEventListener("keydown",this.keydownHandler),this._element.removeEventListener("mouseenter",this.mouseenterHandler),this._element.removeEventListener("mouseleave",this.mouseleaveHandler)}},{key:"keydownHandler",value:function(e){e.stopPropagation(),"Enter"===n.i(f.f)(e)&&this.mousedownHandler(e),y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"keydownHandler",this).call(this,e)}},{key:"mousedownHandler",value:function(e){switch(e.stopPropagation(),u.a(e.target)){case"highlight-btn":this.emit("annotationdraw"),this.toggleHighlight();break;case"add-highlight-comment-btn":this.emit("annotationdraw"),this.toggleHighlightCommentsReply(!1),this.toggleHighlightDialogs(),e.preventDefault(),this.focusAnnotationsTextArea();break;default:y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickHandler",this).call(this,e)}}},{key:"toggleHighlightIcon",value:function(e){var t=this._element.querySelector(".bp-add-highlight-btn");e===p.v?t.classList.add("highlight-active"):t.classList.remove("highlight-active")}},{key:"toggleHighlight",value:function(){this._element.classList.contains(p.x)?(this._hasComments=!0,this.emit("annotationdelete")):(this._hasComments=!1,this._element.classList.add(p.x),this.emit("annotationcreate"))}},{key:"focusAnnotationsTextArea",value:function(){var e=this._element.querySelector(p.j);u.g(e)&&e.focus()}},{key:"getDialogWidth",value:function(){return u.o(this._element),u.d(this._element),this.highlightDialogWidth=this._element.getBoundingClientRect().width,u.c(this._element),u.p(this._element),this.highlightDialogWidth}},{key:"getScaledPDFCoordinates",value:function(e,t){var n=u.b(this._annotatedElement),i=h.l(this._location.quadPoints),r=g(i,2),o=r[0],a=r[1],s=u.k(this._location.dimensions,e,n,w+E);return s&&(o*=s.x,a*=s.y),h.j([o,a],t,n)}},{key:"addAnnotationElement",value:function(e){if(""===e.text){this._element.querySelector(".bp-annotation-highlight-dialog").dataset.annotationId=e.annotationID}else y(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addAnnotationElement",this).call(this,e)}}]),t}(c.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(207),h=n(18),d=n(24),p=n(54),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAnnotation",this).call(this,e,n),this._annotations.length&&this._annotations[0].permissions&&!this._annotations[0].permissions.can_delete){var i=this._dialog._element.querySelector(".bp-add-highlight-btn");h.c(i)}}},{key:"onMousedown",value:function(){this._state===d.c&&this.destroy()}},{key:"onClick",value:function(e,t){return t||this._state!==d.h&&this._state!==d.s&&!this.isOnHighlight(e)?(this.reset(),!1):(this._state=d.o,!0)}},{key:"isOnHighlight",value:function(e){return p.f(e,this._dialog.element)||this.isInHighlight(e)}},{key:"activateDialog",value:function(){this._state===d.o||this._state===d.s?this._state=d.s:this._state=d.h,this._dialog._element||this._dialog.setup(this._annotations),this._dialog.mouseenterHandler(),clearTimeout(this.hoverTimeoutHandler)}},{key:"onMousemove",value:function(e){var t=this;if(p.f(e,this._dialog.element)){if(this._state===d.t)return!1;this._state=d.h}else if(this.isInHighlight(e))this.activateDialog();else if(this._state!==d.o)return this._state!==d.g&&(this.hoverTimeoutHandler=setTimeout(function(){t.reset()},b),!1);return!0}},{key:"show",value:function(){switch(this._state){case d.c:this.showDialog();break;case d.g:this.hideDialog(),this.draw(d.u);break;case d.h:case d.o:case d.t:case d.s:this.showDialog(),this.draw(d.v)}}},{key:"createDialog",value:function(){this._dialog=new u.a({annotatedElement:this._annotatedElement,annotations:this._annotations,locale:this._locale,location:this._location,canAnnotate:this._annotationService.canAnnotate}),this._annotations.length&&(""!==this._annotations[0].text||this._annotations.length>1)&&this._type===d.d&&(this._type=d.e)}},{key:"setupElement",value:function(){}},{key:"bindCustomListenersOnDialog",value:function(){var e=this;this._dialog.addListener("annotationdraw",function(){e._state=d.t,window.getSelection().removeAllRanges(),e.show()}),this._dialog.addListener("annotationcommentpending",function(){e._state=d.t}),this._dialog.addListener("annotationcreate",function(t){t?(e._type=d.e,e._dialog.toggleHighlightCommentsReply(e._annotations.length)):e._type=d.d,e.saveAnnotation(e._type,t?t.text:"")}),this._dialog.addListener("annotationcancel",function(){e.cancelFirstComment()}),this._dialog.addListener("annotationdelete",function(t){t?e.deleteAnnotation(t.annotationID):e.deleteAnnotation(e._annotations[0].annotationID)})}},{key:"unbindCustomListenersOnDialog",value:function(){this.removeAllListeners("annotationdraw"),this.removeAllListeners("annotationcommentpending"),this.removeAllListeners("annotationcreate"),this.removeAllListeners("annotationcancel"),this.removeAllListeners("annotationdelete")}},{key:"draw",value:function(e){var t=this,n=this.getContext();if(n){var i=this.getPageEl().getBoundingClientRect(),r=i.height-y-m,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,i,o,y+m);this._location.quadPoints.forEach(function(i){var s=i;a&&(s=i.map(function(e,t){return t%2?e*a.y:e*a.x}));var l=p.j(s,r,o),c=f(l,8),u=c[0],h=c[1],v=c[2],g=c[3],m=c[4],y=c[5],b=c[6],E=c[7];n.fillStyle=e,n.beginPath(),n.moveTo(u,h),n.lineTo(v,g),n.lineTo(m,y),n.lineTo(b,E),n.closePath(),n.save(),n.globalCompositeOperation="destination-out",n.fillStyle=d.r,n.fill(),n.restore(),e!==d.r&&(n.fill(),t._dialog._element&&t._dialog.toggleHighlightIcon(e))})}}},{key:"isInHighlight",value:function(e){var t=this.getPageEl(),n=t.getBoundingClientRect(),i=n.height-y-m,r=n.top+y,o=h.b(this._annotatedElement),a=h.k(this._location.dimensions,n,o,y+m),s=e.clientX-n.left,l=e.clientY-r;return this._location.quadPoints.some(function(e){var t=e;a&&(t=e.map(function(e,t){return t%2?e*a.y:e*a.x}));var n=p.j(t,i,o),r=f(n,8),c=r[0],u=r[1],h=r[2],d=r[3],v=r[4],g=r[5],m=r[6],y=r[7];return p.k([[c,u],[h,d],[v,g],[m,y]],s,l)})}},{key:"getPageEl",value:function(){return this._annotatedElement.querySelector('[data-page-number="'+this._location.page+'"]')}},{key:"getContext",value:function(){var e=this.getPageEl();if(!e)return null;var t=e.querySelector(".bp-annotation-layer");if(!t){t=document.createElement("canvas"),t.classList.add("bp-annotation-layer");var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height-y-m;var i=e.querySelector(".textLayer");e.insertBefore(t,i)}return t.getContext("2d")}}]),t}(c.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(54),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nr.right||e.clientXr.bottom||e.clientY0&&(i.threadID=e[0].threadID);var r=new u.a(i);return this.addThreadToMap(r),r}},{key:"hideAllAnnotations",value:function(){for(var e=document.querySelector(p.E),t=this._annotatedElement.getElementsByClassName("bp-point-annotation-btn"),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderAnnotations",this).call(this),this._annotationService.canAnnotate){var n=document.querySelector(p.E);0!==e?h.c(n):h.d(n)}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(79),u=n(18),h=n(81),d=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;nthis._annotatedElement.clientWidth?a.clientWidth:this._annotatedElement.clientWidth;s=u.f(this._element,s,o,n,c),this._element.style.left=s+"px",this._element.style.top=l+f-v+g+"px"}}}]),t}(c.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(80),u=n(212),h=n(18),d=n(81),p=n(24),f=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;on.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}})},function(e,t,n){"use strict";function i(e,t){var n={};return e.forEach(function(e){n[e]=t}),n}function r(e,t){if(!t||!e)return Promise.reject(o);var n=[e];return Array.isArray(e)&&(n=e),new Promise(function(e,r){"function"==typeof t?t(n).then(function(t){"string"==typeof t?e(i(n,t)):(n.every(function(e){return!!t[e]})||r(o),e(t))}):e(i(n,t))})}t.a=r;var o=new Error("Missing Auth Token!")},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(309),s=(n.n(a),n(125)),l=n(82),c=n(219),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&!s.a.hasWebGL()){var o=n.i(l.n)("很抱歉,您的瀏覽器不支援預覽 {1}的功能。",["360 度影像"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=n(220),l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=n;return i.sceneEntities=i.sceneEntities||s.a,c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,i).then(this.loadPanoramaFile.bind(this,e)).then(this.onSceneLoad.bind(this))}},{key:"loadPanoramaFile",value:function(e){var t=this;return this.box3d.addRemoteEntities(e).then(function(){return t.imageAsset=t.box3d.getAssetByClass(Box3D.ImageAsset),t.textureAsset=t.box3d.createTexture2d(),t.textureAsset.setProperties({imageId:t.imageAsset.id,uMapping:"clamp",vMapping:"clamp"}),new Promise(function(e){t.textureAsset.load(function(){t.skybox=t.getSkyboxComponent(),t.skybox.enable(),t.skybox.setAttribute("skyboxTexture",t.textureAsset.id),e()})})},function(){return t.onUnsupportedRepresentation()})}},{key:"enableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!0)}},{key:"disableVr",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disableVr",this).call(this),this.getSkyboxComponent().setAttribute("stereoEnabled",!1)}}]),t}(a.a);t.a=u},function(e,t,n){"use strict";var i=n(9);t.a=[{id:"CAMERA_ID",type:"camera",parentId:"SCENE_ID",properties:{near:.05,far:200,fov:70},components:[{name:"Render View",enabled:!0,scriptId:"vr_render_view"},{name:"Orbit Camera",attributes:{panEnabled:!1,zoomEnabled:!0,inertialDamping:.2,lookSpeed:.5},enabled:!0,scriptId:"orbit_camera"},{name:"VR Camera Controller",enabled:!0,scriptId:"vr_camera_controller"}]},{id:"SCENE_ID",type:"scene",children:["CAMERA_ID"],components:[{name:"Skybox",attributes:{size:100},scriptId:"skybox_renderer",enabled:!1}]},{id:"APP_ASSET_ID",type:"application",properties:{startupSceneId:"SCENE_ID"},components:[{name:"Renderer",attributes:{antialias:!i.a.isMobile(),maxTextureSize2d:8192,renderOnDemand:!0},scriptId:"box3d_renderer",isBuiltIn:!0,enabled:!0},{name:"Debug Performance",scriptId:"debug_performance",enabled:!1},{name:"Input",scriptId:"input",isBuiltIn:!0,enabled:!0,attributes:{mouseEvents:{enable:!0,scroll:!0,preventScrollDefault:!0,move:!0,down:!0,preventDownDefault:!1,up:!0,doubleClick:!0,leave:!0,contextMenu:!0,preventContextMenuDefault:!0,dragBufferDistance:12,eventHandler:!0},touchEvents:{enable:!0,start:!0,preventStartDefault:!1,end:!0,doubleTap:!0,cancel:!0,leave:!0,move:!0,preventMoveDefault:!0,dragBufferDistance:12,eventHandler:!0},keyEvents:{enable:!0,down:!0,up:!0,preventDefault:!1,eventHandler:!0}}},{name:"VR Presenter",scriptId:"vr_presenter"}]}]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(125),u=n(223),h=n(225),d=n(41),p=n(29),f=n(310),v=(n.n(f),function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];this.renderer.setAxisRotation(e,t,n)}},{key:"handleSceneLoaded",value:function(){var e=this;return this.loaded=!0,this.boxSdk.getMetadataClient().get(this.options.file.id,"global","box3d").then(function(e){if(200!==e.status)throw new Error("Received unsuccessful response status: "+e.status);return e.response}).catch(this.onMetadataError).then(function(t){return e.controls&&e.controls.addUi(),e.axes.up=t.upAxis||m,e.axes.forward=t.forwardAxis||y,e.renderMode=t.defaultRenderMode||d.k,e.projection=t.cameraProjection||d.l,e.axes.up===m&&e.axes.forward===y||e.handleRotationAxisSet(e.axes.up,e.axes.forward,!1),e.handleReset(),e.populateAnimationControls(),e.showWrapper(),e.renderer.initVr(),e.renderer.initVrGamepadControls(),e.emit(p.b),!0})}},{key:"onMetadataError",value:function(e){return{}}},{key:"populateAnimationControls",value:function(){var e=this;if(this.controls){var t=this.renderer.box3d.getEntitiesByType("animation");if(t.length>0){var n=t[0].getClipIds();n.forEach(function(n){var i=t[0].getClip(n),r=i.stop-i.start;e.controls.addAnimationClip(n,i.name,r)}),n.length>0&&(this.controls.showAnimationControls(),this.controls.selectAnimationClip(n[0]))}}}},{key:"handleToggleAnimation",value:function(e){this.renderer.toggleAnimation(e)}},{key:"handleCanvasClick",value:function(){this.controls.hidePullups()}},{key:"showWrapper",value:function(){this.wrapperEl.classList.remove(p.a)}},{key:"handleReset",value:function(){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleReset",this).call(this),this.controls&&(this.controls.handleSetRenderMode(this.renderMode),this.controls.setCurrentProjectionMode(this.projection),this.controls.handleSetSkeletonsVisible(!1),this.controls.handleSetWireframesVisible(!1)),this.renderer&&(this.handleRotationAxisSet(this.axes.up,this.axes.forward,!0),this.renderer.stopAnimation())}},{key:"handleSetRenderMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Lit";this.renderer.setRenderMode(e)}},{key:"handleToggleHelpers",value:function(e){this.renderer.toggleHelpers(e)}},{key:"handleSetCameraProjection",value:function(e){this.renderer.setCameraProjection(e)}},{key:"handleSetQualityLevel",value:function(e){this.renderer.setQualityLevel(e)}},{key:"handleShowSkeletons",value:function(e){this.renderer.setSkeletonsVisible(e)}},{key:"handleShowWireframes",value:function(e){this.renderer.setWireframesVisible(e)}}]),t}(c.a))||a;t.a=b},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(13),s=n.n(a),l=n(41),c=n(83),u=n(6),h=n(5),d=function(){function e(e,t){for(var n=0;n=t?e:new Array(t-e.length+1).join("0")+e}},{key:"reset",value:function(){this.getClipCount()>0&&this.selectClip(this.getClipId(0))}},{key:"selectClip",value:function(e){var t=this;Object.keys(this.clipEls).forEach(function(n){t.clipEls[n].querySelector(".box3d-animation-clip-icon").innerHTML=n===e?u.l:""}),this.emit(l.b,e)}},{key:"show",value:function(){this.pullupEl.classList.remove(l.p)}},{key:"toggle",value:function(){this.pullupEl.classList.toggle(l.p)}}]),t}(s.a);t.a=f},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(82),u=n(222),h=n(226),d=n(41),p=n(29),f=n(6),v=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(!s.a.supportsModel3D()){var o=n.i(l.n)("很抱歉,您的瀏覽器不支援預覽 {1}的功能。",["3D 模型"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new p},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var l,c=n(0),u=n.n(c),h=n(64),d=n(227),p=n(228),f=n(41),v=n(29),g=n(9),m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=m({},i),o=r.location;return o&&(r.sceneEntities=n.i(p.a)(o.staticBaseURI)),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this,e,r).then(this.loadBox3dFile.bind(this,e))}},{key:"handleCanvasClick",value:function(e){this.emit(f.j,e)}},{key:"loadBox3dFile",value:function(e){var t=this;return this.box3d.canvas.addEventListener("click",this.handleCanvasClick),this.box3d.getApplication().getComponentByScriptId("render_modes").setAttribute("shapeTexture","MAT_CAP_TEX"),this.box3d.addRemoteEntities(e).then(function(e){return t.setupScene(e)},function(){return t.onUnsupportedRepresentation()})}},{key:"setupScene",value:function(e){var t=this,n=this.getScene();n&&(this.optimizeMaterials(),this.createPrefabInstances(),this.addHelpersToScene(),n.when("load",function(){return t.onSceneLoad()}),e.forEach(function(e){if(e.id===e.parentAssetId){var n=t.box3d.getAssetById(e.id);t.assets.push(n)}}))}},{key:"optimizeMaterials",value:function(){this.box3d.getAssetsByType(Box3D.MaterialAsset).forEach(function(e){e.getProperty("roughness")<=.01&&!e.getProperty("glossMap")&&e.setProperty("envMapGlossVariance",!1),e.getProperty("roughness")>=.99&&(e.setProperty("envMapGlossVariance",!1),e.enableFeature("specular",!1)),g.a.isMobile()&&e.enableFeature("normals",!1)})}},{key:"createPrefabInstances",value:function(){var e=this.box3d.getAssetsByType("prefab");if(0!==e.length){var t=this.box3d.createNode();e.forEach(function(e){return t.addChild(e.createInstance())}),this.instance=t,this.getScene().addChild(t),this.adjustModelForScene(t),this.instance=t}}},{key:"adjustModelForScene",value:function(e){e.scaleToSize(this.modelSize),e.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector),e.addComponent("preview_axis_rotation",{},"axis_rotation_"+e.id),e.addComponent("animation",{},"animation_"+e.id)}},{key:"getAxes",value:function(){var e=this;return new Promise(function(t){e.box3d.trigger("get_axes",t)})}},{key:"reset",value:function(){this.resetModel(),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reset",this).call(this)}},{key:"resetModel",value:function(){this.instance&&(this.instance.getChildren().forEach(function(e){e.setPosition(E.x,E.y,E.z),e.setQuaternion(_.x,_.y,_.z,_.w)}),this.instance.computeBounds(),this.instance.scaleToSize(this.modelSize),this.instance.alignToPosition(this.modelAlignmentPosition,this.modelAlignmentVector))}},{key:"resetView",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"resetView",this).call(this);var e=this.getCamera();if(e){var n=e.getComponentByScriptId("orbit_camera");if(n&&this.instance.runtimeData){this.instance.computeBounds();var i=this.instance.getBounds();this.instance.runtimeData.updateMatrixWorld(),i.min.applyMatrix4(this.instance.runtimeData.matrixWorld),i.max.applyMatrix4(this.instance.runtimeData.matrixWorld);var r=new THREE.Vector3;r.subVectors(i.max,i.min);var o=this.instance.getCenter();o.applyMatrix4(this.instance.runtimeData.matrixWorld),n.originPoint.copy(o),n.setPivotPosition(o);var a=O*Math.max(Math.max(r.x,r.y),r.z);n.setOrbitDistance(a)}}}},{key:"onSceneLoad",value:function(){var e=this;this.reset(),this.resetSkeletons(),this.emit(v.g);var t=this.box3d.getEntitiesByType("animation"),n=this.box3d.getEntitiesByType("image"),i=this.box3d.getEntitiesByType("video"),r=t.concat(n,i).filter(function(e){return e.isLoading()}),o=r.map(function(e){return new Promise(function(t){e.when("load",t)})});Promise.all(o).then(function(){e.startOptimizer(),t.length>0&&e.setAnimationAsset(t[0]),i.forEach(function(e){return e.play()})}),this.resize()}},{key:"setAnimationAsset",value:function(e){if(this.instance){var t=this.instance.getComponentByScriptId("animation");t.setAsset(e),t.setLoop(!0)}}},{key:"setAnimationClip",value:function(e){if(this.instance){this.instance.getComponentByScriptId("animation").setClipId(e)}}},{key:"toggleAnimation",value:function(e){var t=this;if(this.instance){var n=this.instance.getComponentByScriptId("animation"),i=n?n.asset:void 0;i&&i.when("load",function(){t.instance.when("load",function(){e?(n.play(),n.onUpdate(0),t.instance.scaleToSize(t.modelSize),t.instance.alignToPosition(t.modelAlignmentPosition,t.modelAlignmentVector)):n.pause()})})}}},{key:"stopAnimation",value:function(){if(this.instance){this.instance.getComponentByScriptId("animation").stop()}}},{key:"startOptimizer",value:function(){if(this.dynamicOptimizer=this.box3d.getApplication().getComponentByScriptId("dynamic_optimizer"),this.dynamicOptimizer){this.createRegularQualityChangeLevels(),this.createVrQualityChangeLevels(),this.dynamicOptimizerEnabled?this.dynamicOptimizer.enable():this.dynamicOptimizer.disable(),this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}}},{key:"onUnsupportedRepresentation",value:function(){this.emit("error",new Error("很抱歉,此檔案格式不受支援。"))}},{key:"addHelpersToScene",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid=new THREE.GridHelper(f.v,f.w,f.x,f.y),this.grid.material.transparent=!0,this.grid.material.blending=THREE.MultiplyBlending,e.add(this.grid),this.axisDisplay=new THREE.AxisHelper(.5),e.add(this.axisDisplay),this.axisDisplay.visible=!1)}},{key:"cleanupHelpers",value:function(){var e=this.getScene()?this.getScene().runtimeData:void 0;e&&(this.grid&&(e.remove(this.grid),this.grid.material.dispose(),this.grid.geometry.dispose()),this.axisDisplay&&(e.remove(this.axisDisplay),this.axisDisplay.material.dispose(),this.axisDisplay.geometry.dispose()))}},{key:"toggleHelpers",value:function(e){var t=void 0!==e?e:!this.axisDisplay.visible;this.axisDisplay.visible=t,this.box3d.needsRender=!0}},{key:"cleanupScene",value:function(){this.cleanupHelpers(),this.instance&&(this.instance.destroy(),this.instance=null),this.assets.forEach(function(e){e.destroy()}),this.assets.length=0,this.resetSkeletons()}},{key:"resetSkeletons",value:function(){this.box3d&&Box3D.globalEvents.trigger(f.z)}},{key:"setRenderMode",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.e,this.renderModeValues[e])}},{key:"setCameraProjection",value:function(e){var t=this.getCamera();if(t){var n=this.getAspect();switch(e){case f.A:t.setProperties({top:.5,bottom:-.5,left:-.5*n,right:.5*n,cameraType:"orthographic"});break;case f.l:t.setProperties({aspect:n,cameraType:"perspective"})}}}},{key:"setQualityLevel",value:function(e){if(this.box3d)switch(e){case f.B:this.dynamicOptimizerEnabled=!1,this.dynamicOptimizer&&this.dynamicOptimizer.disable();break;default:this.dynamicOptimizerEnabled=!0,this.dynamicOptimizer&&this.dynamicOptimizer.enable()}}},{key:"listenToRotateComplete",value:function(e,t){var n=this;this.isRotating=!0;var i=function(i){n.instance&&(i?n.instance.alignToPosition(n.modelAlignmentPosition,n.modelAlignmentVector):n.instance.alignToPosition(e,t))};this.box3d.on("postUpdate",i),this.instance.once("axis_transition_complete",function(){i(!0),n.box3d.off("postUpdate",i),n.isRotating=!1})}},{key:"rotateOnAxis",value:function(e){if(this.instance&&this.box3d&&!this.isRotating){this.box3d.trigger("rotate_on_axis",e,!0);var t=this.instance.getCenter();this.instance.runtimeData&&t.applyMatrix4(this.instance.runtimeData.matrixWorld),this.listenToRotateComplete(t,E)}}},{key:"setAxisRotation",value:function(e,t,n){this.instance&&(this.listenToRotateComplete(this.modelAlignmentPosition,this.modelAlignmentVector),this.box3d.trigger("set_axes",e,t,n))}},{key:"setSkeletonsVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.f,e)}},{key:"setWireframesVisible",value:function(e){this.box3d&&Box3D.globalEvents.trigger(f.g,e)}},{key:"enableVr",value:function(){if(!this.vrEnabled){if(b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enableVr",this).call(this),this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.vrQualityChangeLevels);var e=g.a.isMobile()?L:x;this.dynamicOptimizer.setFrameTimeThreshold(e)}var n=this.box3d.getVrDisplay();this.vrDeviceHasPosition=n?n.capabilities.hasPosition:void 0,this.vrDeviceHasPosition?this.grid.visible=!0:this.box3d.on("update",this.updateModel3dVrControls,this)}}},{key:"onDisableVr",value:function(){if(this.dynamicOptimizer){this.dynamicOptimizer.setQualityChangeLevels(this.regularQualityChangeLevels);var e=g.a.isMobile()?S:P;this.dynamicOptimizer.setFrameTimeThreshold(e)}this.vrDeviceHasPosition||this.box3d.off("update",this.updateModel3dVrControls,this),b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDisableVr",this).call(this)}},{key:"updateModel3dVrControls",value:function(){var e=this.getCamera(),t=e.getComponentByScriptId("orbit_camera");if(t){var n=e.runtimeData;n.position.set(0,0,t.getOrbitDistance()),n.position.applyQuaternion(n.quaternion),n.position.add(t.originPoint)}}},{key:"initVrGamepadControls",value:function(){this.vrControls=new d.a(this.vrGamepads,this.box3d)}},{key:"createRegularQualityChangeLevels",value:function(){this.regularQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.5),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",.75),new this.dynamicOptimizer.QualityChangeLevel("application","Renderer","devicePixelRatio",1)]}},{key:"createVrQualityChangeLevels",value:function(){this.vrQualityChangeLevels=[new this.dynamicOptimizer.QualityChangeLevel("material",null,"aoMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapIrradiance",null),new this.dynamicOptimizer.QualityChangeLevel("light",null,"color",{r:1,g:1,b:1}),new this.dynamicOptimizer.QualityChangeLevel("material",null,"normalMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadiance",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"glossMap",null),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapGlossVariance",!1),new this.dynamicOptimizer.QualityChangeLevel("material",null,"envMapRadianceHalfGloss",null)]}}]),t}(h.a),s(l.prototype,"handleCanvasClick",[u.a],Object.getOwnPropertyDescriptor(l.prototype,"handleCanvasClick"),l.prototype),l);t.a=T},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:[],r=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r){var o=s.a.getName(),a=s.a.isIOS();if(!p.some(function(e){return e===o})||a||!s.a.hasWebGL()){var c=n.i(l.n)("很抱歉,您的瀏覽器不支援預覽 {1}的功能。",["360 度影片"]);throw new Error(c)}}return r}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(64),s=function(){function e(e,t){for(var n=0;n'+p.B+"").trim(),t=('").trim(),n=('").trim();this.findButtonContainerEl=document.createElement("span"),this.findButtonContainerEl.classList.add("bp-doc-find-controls"),this.findButtonContainerEl.innerHTML=e+t+n,this.bar.appendChild(this.findButtonContainerEl)}},{key:"destroy",value:function(){this.currentMatch=0,this.unbindDOMListeners(),this.bar&&this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"dispatchFindEvent",value:function(e,t){this.findController.executeCommand(e,{query:this.findFieldEl.value,phraseSearch:!0,highlightAll:!0,findPrevious:t})}},{key:"updateUIState",value:function(e){switch(this.status="",e){case b:this.findFieldEl.classList.add(m);break;case E:this.status="pending";break;case y:this.findFieldEl.classList.remove(m)}this.findFieldEl.setAttribute("data-status",this.status),this.updateUIResultsCount()}},{key:"updateUIResultsCount",value:function(){if(this.findResultsCountEl){if(!this.findController.matchCount)return void this.findResultsCountEl.classList.add(d.v);var e=this.findResultsCountEl.getBoundingClientRect().width+g;this.findFieldEl.style.paddingRight=e+"px",this.findResultsCountEl.textContent=this.currentMatch+v+this.findController.matchCount,this.findResultsCountEl.classList.remove(d.v)}}},{key:"bindDOMListeners",value:function(){this.bar.addEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.addEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.addEventListener("click",this.findPreviousHandler),this.findNextButtonEl.addEventListener("click",this.findNextHandler),this.findCloseButtonEl.addEventListener("click",this.close),document.addEventListener("keydown",this.displayFindBarHandler)}},{key:"unbindDOMListeners",value:function(){this.bar.removeEventListener("keydown",this.barKeyDownHandler),this.findFieldEl.removeEventListener("input",this.findFieldHandler),this.findPreviousButtonEl.removeEventListener("click",this.findPreviousHandler),this.findNextButtonEl.removeEventListener("click",this.findNextHandler),this.findCloseButtonEl.removeEventListener("click",this.close),document.removeEventListener("keydown",this.displayFindBarHandler)}},{key:"displayFindBarHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"meta+f":case"control+f":case"meta+g":case"control+g":case"f3":this.open(),e.preventDefault()}}},{key:"findFieldHandler",value:function(){this.dispatchFindEvent("find"),this.currentMatch=1}},{key:"barKeyDownHandler",value:function(e){switch(n.i(h.f)(e).toLowerCase()){case"enter":this.findNextHandler(!1);break;case"shift+enter":this.findPreviousHandler(!1);break;case"escape":case"esc":if(!this.opened)return;this.close(),e.stopPropagation(),e.preventDefault();break;case"shift++":case"shift+_":case"[":case"]":e.stopPropagation()}}},{key:"findNextHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!1),this.currentMatch=this.currentMatch+1,this.currentMatch>this.findController.matchCount&&(this.currentMatch=1)):this.findNextButtonEl.focus())}},{key:"findPreviousHandler",value:function(e){this.findFieldEl.value&&(e?(this.dispatchFindEvent("findagain",!0),this.currentMatch=this.currentMatch-1,this.currentMatch<=0&&(this.currentMatch=this.findController.matchCount)):this.findPreviousButtonEl.focus())}},{key:"open",value:function(){this.prevSearchQuery&&(this.findFieldEl.value=this.prevSearchQuery,this.findFieldHandler()),this.opened||(this.opened=!0,this.bar.classList.remove(d.v)),this.findFieldEl.select(),this.findFieldEl.focus()}},{key:"close",value:function(){this.prevSearchQuery=this.findFieldEl.value,this.findFieldEl.value="",this.findFieldHandler(),this.opened&&(this.opened=!1,this.bar.classList.add(d.v),this.findController.active=!1)}}]),t}(u.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(22),l=n(237),c=n(238),u=n(120),h=n(1),d=function(){function e(e,t){for(var n=0;n\n \n
                                              \n ').trim(),i.containerEl.appendChild(i.wrapperEl),i.preloadEl=i.wrapperEl.querySelector("."+l.X),i.imageEl=i.preloadEl.querySelector("img."+l.Y),i.bindDOMListeners())})}},{key:"hidePreload",value:function(){this.wrapperEl&&(this.restoreScrollPosition(),this.unbindDOMListeners(),this.wrapperEl.parentNode.removeChild(this.wrapperEl),this.wrapperEl=void 0,this.preloadEl=void 0,this.imageEl=void 0,this.srcUrl&&URL.revokeObjectURL(this.srcUrl))}},{key:"bindDOMListeners",value:function(){this.imageEl.addEventListener("load",this.loadHandler)}},{key:"unbindDOMListeners",value:function(){this.imageEl.removeEventListener("load",this.loadHandler)}},{key:"restoreScrollPosition",value:function(){var e=this.wrapperEl.scrollTop,t=this.wrapperEl.parentNode.querySelector(".bp-doc");t&&e>0&&(t.scrollTop=e)}},{key:"readEXIF",value:function(e){return new Promise(function(t,n){try{EXIF.getData(e,function(){var i=EXIF.getTag(e,d),r=i.map(function(e){return String.fromCharCode(e)}).join(""),o=p.exec(r);o&&4===o.length?t({pdfWidth:parseInt(o[1],10)*f,pdfHeight:parseInt(o[2],10)*f,numPages:parseInt(o[3],10)}):n("No valid EXIF data found")})}catch(e){n("Error reading EXIF data")}})}},{key:"getScaledDimensions",value:function(e,t){var n=this.wrapperEl,i=n.clientWidth,r=n.clientHeight,o=(i-g)/e,a=(r-m)/t,s=e>t,l=s?Math.min(a,o):o;return l=Math.min(v,l),{scaledWidth:Math.floor(l*e),scaledHeight:Math.floor(l*t)}}},{key:"scaleAndShowPreload",value:function(e,t,i){if(!this.checkDocumentLoaded()){n.i(c.r)(this.imageEl,e,t);for(var r=0;r\s*<");this.controls.add("按一下以輸入頁碼",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("下一頁",this.nextPage,"bp-doc-next-page-icon bp-next-page",g.v),this.controls.add("進入全螢幕模式",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("退出全螢幕模式",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}}]),t}(h.a))||a;t.a=E},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(46),u=n.n(c),h=n(154),d=n.n(h),p=n(9),f=n(127),v=n(1),g=n(6),m=n(313),y=(n.n(m),function(){function e(e,t){for(var n=0;ne.clientWidth,i=t.clientHeight-w>e.clientHeight;return e.classList.remove("overflow-x"),e.classList.remove("overflow-y"),n&&e.classList.add("overflow-x"),i&&e.classList.add("overflow-y"),n||i}},{key:"initViewer",value:function(e){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initViewer",this).call(this,e),this.overwritePdfViewerBehavior()}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.docEl.addEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.addEventListener("touchstart",this.mobileScrollHandler),this.docEl.addEventListener("touchmove",this.mobileScrollHandler),this.docEl.addEventListener("touchend",this.mobileScrollHandler))}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.docEl.removeEventListener("wheel",this.wheelHandler()),p.a.isMobile()&&(this.docEl.removeEventListener("touchstart",this.mobileScrollHandler),this.docEl.removeEventListener("touchmove",this.mobileScrollHandler),this.docEl.removeEventListener("touchend",this.mobileScrollHandler))}},{key:"bindControlListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindControlListeners",this).call(this),this.controls.add("拉遠",this.zoomOut,"bp-exit-zoom-out-icon",g.m),this.controls.add("拉近",this.zoomIn,"bp-enter-zoom-in-icon",g.n),this.controls.add("上一頁",this.previousPage,"bp-presentation-previous-page-icon bp-previous-page",g.u);var e=d.a.replace(/>\s*<");this.controls.add("按一下以輸入頁碼",this.showPageNumInput,"bp-doc-page-num",e),this.controls.add("下一頁",this.nextPage,"bp-presentation-next-page-icon bp-next-page",g.v),this.controls.add("進入全螢幕模式",this.toggleFullscreen,"bp-enter-fullscreen-icon",g.d),this.controls.add("退出全螢幕模式",this.toggleFullscreen,"bp-exit-fullscreen-icon",g.e)}},{key:"mobileScrollHandler",value:function(e){if(this.checkOverflow()||!e.changedTouches||0===e.changedTouches.length||"touchmove"===e.type)return void e.preventDefault();if("touchstart"===e.type)this.scrollStart=e.changedTouches[0].clientY;else{var t=e.changedTouches[0].clientY;this.scrollStart&&this.scrollStart>t+_?this.nextPage():this.scrollStart&&this.scrollStart0?e.nextPage():t.deltaY<0&&e.previousPage())},E)),this.throttledWheelHandler}},{key:"overwritePdfViewerBehavior",value:function(){var e=this;this.pdfViewer.scrollPageIntoView=function(t){var n=t;"number"!=typeof n&&(n=t.pageNumber||1),e.setPage(n)},this.pdfViewer._getVisiblePages=function(){var t=e.pdfViewer._pages[e.pdfViewer._currentPageNumber-1];return{first:t,last:t,views:[{id:t.id,view:t}]}}}}]),t}(f.a))||a;t.a=O},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i="third-party/doc/",r=[i+"compatibility.min.js",i+"pdf.min.js",i+"pdf_viewer.min.js",i+"pdf.worker.min.js",i+"exif.min.js"],o=[i+"pdf_viewer.css"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(22),h=n(1),d=n(6),p=n(314),f=(n.n(p),function(){function e(e,t){for(var n=0;nthis.wrapperEl.clientWidth||this.imageEl.width>this.wrapperEl.clientHeight:this.isPannable=this.imageEl.width>this.wrapperEl.clientWidth||this.imageEl.height>this.wrapperEl.clientHeight,this.didPan=!1,this.updateCursor())}},{key:"rotateLeft",value:function(){this.currentRotationAngle=(this.currentRotationAngle-90)%3600%360,this.imageEl.setAttribute("data-rotation-angle",this.currentRotationAngle),this.imageEl.style.transform="rotate("+this.currentRotationAngle+"deg)",this.emit("rotate"),this.handleOrientationChange(),this.annotator&&this.scaleAnnotations(this.imageEl.offsetwidth,this.imageEl.offsetHeight)}},{key:"zoom",value:function(e){var t=void 0,n=void 0,i=this.imageEl.getBoundingClientRect(),r=i.width,o=i.height,a=r/o,s={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O},l=a>=1;switch(e){case"in":l?t=r*k:n=o*k;break;case"out":l?t=r/k:n=o/k;break;case"reset":return this.imageEl.style.width="",this.imageEl.style.height="",this.adjustImageZoomPadding(),void this.zoom();default:if(r>s.width||o>s.height){var c=Math.min(s.width/r,s.height/o);l?t=r*c:n=o*c}else if(l){var u=this.isRotated()?this.imageEl.naturalHeight:this.imageEl.naturalWidth;t=Math.min(s.width,u)}else{var h=this.isRotated()?this.imageEl.naturalWidth:this.imageEl.naturalHeight;n=Math.min(s.height,h)}}if(this.isRotated()){var d=t;t=n,n=d}this.imageEl.style.width=t?t+"px":"",this.imageEl.style.height=n?n+"px":"",this.adjustImageZoomPadding(),setTimeout(this.updatePannability,50),this.annotator&&this.scaleAnnotations(t,n),this.emit("zoom",{newScale:[t||r,n||o],canZoomIn:!0,canZoomOut:!0})}},{key:"scaleAnnotations",value:function(e,t){var n=e?e/this.imageEl.naturalWidth:t/this.imageEl.naturalHeight,i=this.currentRotationAngle%3600%360;this.annotator.setScale(n),this.annotator.renderAnnotations(i)}},{key:"loadUI",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("向左旋轉",this.rotateLeft,"bp-image-rotate-left-icon",f.o),this.controls.add("進入全螢幕模式",this.toggleFullscreen,"bp-enter-fullscreen-icon",f.d),this.controls.add("退出全螢幕模式",this.toggleFullscreen,"bp-exit-fullscreen-icon",f.e),this.annotator&&!this.annotationsLoaded&&(this.annotator.showAnnotations(),this.annotationsLoaded=!0)}},{key:"print",value:function(){this.printframe=n.i(g.p)(this.imageEl.outerHTML),this.printframe.contentWindow.focus(),"Explorer"===h.a.getName()||"Edge"===h.a.getName()?this.printframe.contentWindow.document.execCommand("print",!1,null):this.printframe.contentWindow.print(),this.emit("printsuccess")}},{key:"initAnnotations",value:function(){var e=this;if(this.isAnnotatable()){var t=this.options,i=t.apiHost,r=t.file,o=t.location,a=t.token,s=n.i(p.c)(r,v.e)&&!h.a.isMobile();this.canAnnotate=s;var l=r.file_version.id,d=new c.a({apiHost:i,fileId:r.id,token:a,canAnnotate:s});this.annotator=new u.a({annotatedElement:this.wrapperEl,annotationService:d,fileVersionID:l,locale:o.locale}),this.annotator.init(this),this.annotator.addListener("pointmodeenter",function(){e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.controls&&e.controls.disable()}),this.annotator.addListener("pointmodeexit",function(){e.updateCursor(),e.controls&&e.controls.enable()})}}},{key:"isAnnotatable",value:function(e){if("string"==typeof e&&"point"!==e)return!1;var t=this.getViewerOption("annotations");return"boolean"==typeof t?t:this.options.showAnnotations}},{key:"isRotated",value:function(){return Math.abs(this.currentRotationAngle)%180==90}},{key:"adjustImageZoomPadding",value:function(){var e=0,t=0,n=0,i=0,r=this.wrapperEl.getBoundingClientRect(),o={width:this.wrapperEl.clientWidth-O,height:this.wrapperEl.clientHeight-O};this.isRotated()?(n=r.width>this.imageEl.clientHeight?r.width:this.imageEl.clientHeight,i=r.height>this.imageEl.clientWidth?r.height:this.imageEl.clientWidth):(n=r.width>this.imageEl.clientWidth?r.width:this.imageEl.clientWidth,i=r.height>this.imageEl.clientHeight?r.height:this.imageEl.clientHeight),e=(n-this.imageEl.clientWidth)/2,t=(i-this.imageEl.clientHeight)/2,this.imageEl.style.left=e+"px",this.imageEl.style.top=t+"px",this.wrapperEl.scrollLeft=(this.wrapperEl.scrollWidth-o.width)/2,this.wrapperEl.scrollTop=(this.wrapperEl.scrollHeight-o.height)/2}},{key:"bindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"bindDOMListeners",this).call(this),this.imageEl.addEventListener("load",this.finishLoading),this.imageEl.addEventListener("error",this.errorHandler),h.a.isMobile()&&this.imageEl.addEventListener("orientationchange",this.handleOrientationChange)}},{key:"unbindDOMListeners",value:function(){b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"unbindDOMListeners",this).call(this),this.imageEl&&(this.imageEl.removeEventListener("load",this.finishLoading),this.imageEl.removeEventListener("error",this.errorHandler)),h.a.isMobile()&&this.imageEl.removeEventListener("orientationchange",this.handleOrientationChange),document.removeEventListener("mousemove",this.pan),document.removeEventListener("mouseup",this.stopPanning)}},{key:"handleMouseUp",value:function(e){this.annotator&&this.annotator.isInPointMode()||b(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e)}},{key:"handleOrientationChange",value:function(){if(this.adjustImageZoomPadding(),this.annotator){var e=this.imageEl.clientWidth/this.imageEl.naturalWidth,t=this.currentRotationAngle%3600%360;this.annotator.setScale(e),this.annotator.renderAnnotations(t)}}},{key:"getPointModeClickHandler",value:function(){var e=this;return this.isAnnotatable("point")?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.imageEl.classList.remove(E),e.imageEl.classList.remove(w),e.annotator.togglePointModeHandler(t)}:null}}]),t}(d.a))||a;t.a=C},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(243),l=n(245),c=n(1),u=function(){function e(e,t){for(var n=0;n0&&this.singleImageEls.forEach(function(t,n){e.unbindImageListeners(n)}),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"load",value:function(){var e=this;this.setup(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"load",this).call(this);var n=this.options.representation.content.url_template;return this.imageUrls=this.constructImageUrls(n),this.imageEl.classList.add(d.H),this.bindImageListeners(0),this.bindDOMListeners(),this.getRepStatus().getPromise().then(function(){e.imageUrls.forEach(function(t,n){return e.setupImageEls(t,n)})}).catch(this.handleAssetError)}},{key:"constructImageUrls",value:function(e){for(var t=this.options,n=t.viewer,i=t.representation,r=i.metadata,o=n.ASSET,a=this.createContentUrlWithAuthParams(e,o),s=[],l=1;l<=r.pages;l++)s.push(a.replace("{page}",l));return s}},{key:"setupImageEls",value:function(e,t){0!==t&&(this.singleImageEls[t]=this.imageEl.appendChild(document.createElement("img")),this.bindImageListeners(t)),this.singleImageEls[t].src=e}},{key:"updatePannability",value:function(){this.wrapperEl&&(this.isPannable=this.imageEl.clientWidth>this.wrapperEl.clientWidth,this.didPan=!1,this.updateCursor())}},{key:"zoom",value:function(e){var t=void 0,n=this.imageEl.parentNode.clientWidth,i=this.imageEl.clientWidth;switch(e){case"in":t=i+100;break;case"out":t=i-100;break;default:t=n}this.imageEl.style.width=t+"px",this.imageEl.parentNode.scrollLeft=(this.imageEl.parentNode.scrollWidth-n)/2,this.emit("zoom"),setTimeout(this.updatePannability,50)}},{key:"loadUI",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"loadUI",this).call(this),this.controls.add("進入全螢幕模式",this.toggleFullscreen,"bp-enter-fullscreen-icon",h.d),this.controls.add("退出全螢幕模式",this.toggleFullscreen,"bp-exit-fullscreen-icon",h.e)}},{key:"bindImageListeners",value:function(e){0===e&&this.singleImageEls[e].addEventListener("load",this.finishLoading),this.singleImageEls[e].addEventListener("error",this.errorHandler)}},{key:"unbindImageListeners",value:function(e){0===e&&this.singleImageEls[e].removeEventListener("load",this.finishLoading),this.singleImageEls[e].removeEventListener("error",this.errorHandler)}}]),t}(c.a))||a;m.Preview=m.Preview||{},m.Preview.MultiImage=y,e.Box=m,t.a=y}).call(t,n(32))},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(130),u=n(318),h=(n.n(u),function(){function e(e,t){for(var n=0;n
                                              ',O=l()(a=function(e){function t(e,o){i(this,t);var a=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.containerEl=e,a.mediaEl=o,n.i(g.m)(a.containerEl,d.a),a.wrapperEl=a.containerEl.querySelector(".bp-media-controls-wrapper"),a.timeScrubberEl=a.wrapperEl.querySelector(".bp-media-time-scrubber-container"),a.volScrubberEl=a.wrapperEl.querySelector(".bp-media-volume-scrubber-container"),a.playButtonEl=a.wrapperEl.querySelector(".bp-media-playpause-icon"),a.setLabel(a.playButtonEl,"播放"),a.volButtonEl=a.wrapperEl.querySelector(".bp-media-controls-volume-control"),a.volLevelButtonEl=a.wrapperEl.querySelector(".bp-media-volume-icon"),a.setLabel(a.volButtonEl,"靜音"),a.timecodeEl=a.wrapperEl.querySelector(".bp-media-controls-timecode"),a.durationEl=a.wrapperEl.querySelector(".bp-media-controls-duration"),a.fullscreenButtonEl=a.wrapperEl.querySelector(".bp-media-fullscreen-icon"),a.setLabel(a.fullscreenButtonEl,"進入全螢幕模式"),a.settingsButtonEl=a.wrapperEl.querySelector(".bp-media-gear-icon"),a.setLabel(a.settingsButtonEl,"設定"),a.setupSettings(),a.setupScrubbers(),a.attachEventHandlers(),a}return o(t,e),m(t,[{key:"destroy",value:function(){this.removeAllListeners(),document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber&&(this.timeScrubber.getHandleEl().removeEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().removeEventListener("mouseleave",this.filmstripHideHandler),this.timeScrubber.destroy(),this.timeScrubber=void 0),this.volScrubber&&(this.volScrubber.destroy(),this.volScrubber=void 0),this.settings&&(this.settings.removeListener("quality",this.handleQuality),this.settings.removeListener("speed",this.handleRate),this.settings.destroy(),this.settings=void 0),this.playButtonEl&&this.playButtonEl.removeEventListener("click",this.togglePlay),this.volLevelButtonEl&&this.volLevelButtonEl.removeEventListener("click",this.toggleMute),this.fullscreenButtonEl&&this.fullscreenButtonEl.removeEventListener("click",this.toggleFullscreen),this.settingsButtonEl&&this.settingsButtonEl.removeEventListener("click",this.toggleSettings),this.wrapperEl&&(this.wrapperEl.removeEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.removeEventListener("mouseleave",this.mouseleaveHandler)),v.a&&v.a.removeListener("exit",this.setFullscreenLabel),this.wrapperEl=void 0,this.timeScrubberEl=void 0,this.volScrubberEl=void 0,this.playButtonEl=void 0,this.volButtonEl=void 0,this.timecodeEl=void 0,this.durationEl=void 0,this.fullscreenButtonEl=void 0,this.settingsButtonEl=void 0,this.filmstripContainerEl=void 0,this.filmstripEl=void 0,this.filmstripTimeEl=void 0}},{key:"handleRate",value:function(){this.emit("ratechange")}},{key:"handleQuality",value:function(){this.emit("qualitychange")}},{key:"setupSettings",value:function(){this.settings=new f.a(this.containerEl),this.settings.addListener("quality",this.handleQuality),this.settings.addListener("speed",this.handleRate)}},{key:"getTimeFromScrubber",value:function(){return this.timeScrubber.getValue()*this.mediaEl.duration}},{key:"setupScrubbers",value:function(){var e=this;this.timeScrubber=new p.a(this.timeScrubberEl,"媒體滑桿",0,0,1),this.timeScrubber.on("valuechange",function(){e.emit("timeupdate",e.getTimeFromScrubber())}),this.volScrubber=new p.a(this.volScrubberEl,"音量滑桿",1,1,1),this.volScrubber.on("valuechange",function(){e.emit("volumeupdate",e.volScrubber.getValue())})}},{key:"formatTime",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?t.toString()+":":"")+(n<10?"0"+n.toString():n.toString())+":"+(i<10?"0"+i.toString():i.toString())}},{key:"setDuration",value:function(e){this.durationEl.textContent=this.formatTime(e||0)}},{key:"setTimeCode",value:function(e){var t=this.mediaEl.duration;this.timeScrubber.setValue(t?(e||0)/t:0),this.timecodeEl.textContent=this.formatTime(e||0)}},{key:"updateProgress",value:function(){var e=this.mediaEl.buffered,t=this.mediaEl.duration||1,n=e.length,i=n?e.end(n-1):0;this.timeScrubber.setBufferedValue(i/t)}},{key:"toggleMute",value:function(){this.emit("togglemute")}},{key:"togglePlay",value:function(){this.emit("toggleplayback")}},{key:"toggleFullscreen",value:function(){this.emit("togglefullscreen"),this.setFullscreenLabel()}},{key:"setFullscreenLabel",value:function(){var e=v.a.isFullscreen(this.containerEl)?"退出全螢幕模式":"進入全螢幕模式";this.setLabel(this.fullscreenButtonEl,e)}},{key:"toggleSettings",value:function(){this.isSettingsVisible()?this.settings.hide():this.settings.show()}},{key:"setLabel",value:function(e,t){e.setAttribute("aria-label",t),e.setAttribute("title",t)}},{key:"isSettingsVisible",value:function(){return!!this.settings&&this.settings.isVisible()}},{key:"showPauseIcon",value:function(){this.wrapperEl.classList.add(b),this.setLabel(this.playButtonEl,"暫停")}},{key:"showPlayIcon",value:function(){this.wrapperEl.classList.remove(b),this.setLabel(this.playButtonEl,"播放")}},{key:"updateVolumeIcon",value:function(e){var t=this;w.forEach(function(e){t.volLevelButtonEl.classList.remove(e)}),this.volLevelButtonEl.classList.add(w[Math.ceil(3*e)]),this.volScrubber.setValue(e);var n=0===Math.ceil(3*e)?"取消靜音":"靜音";this.setLabel(this.volButtonEl,n)}},{key:"increaseSpeed",value:function(){this.settings.increaseSpeed()}},{key:"decreaseSpeed",value:function(){this.settings.decreaseSpeed()}},{key:"attachEventHandlers",value:function(){this.wrapperEl.addEventListener("mouseenter",this.mouseenterHandler),this.wrapperEl.addEventListener("mouseleave",this.mouseleaveHandler),this.playButtonEl.addEventListener("click",this.togglePlay),this.volLevelButtonEl.addEventListener("click",this.toggleMute),this.fullscreenButtonEl.addEventListener("click",this.toggleFullscreen),this.settingsButtonEl.addEventListener("click",this.toggleSettings),v.a.addListener("exit",this.setFullscreenLabel)}},{key:"mouseenterHandler",value:function(){this.preventHiding=!0,this.show()}},{key:"mouseleaveHandler",value:function(){this.preventHiding=!1,this.show()}},{key:"show",value:function(){var e=this;this.wrapperEl&&this.wrapperEl.parentNode&&(this.wrapperEl.parentNode.classList.add(y),clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(function(){e.hide()},E))}},{key:"hide",value:function(){if(this.preventHiding||this.isSettingsVisible())return void this.show();this.wrapperEl&&this.wrapperEl.parentNode&&this.wrapperEl.parentNode.classList.remove(y)}},{key:"resizeTimeScrubber",value:function(){this.timeScrubber&&this.timeScrubber.resize(32)}},{key:"setFilmstrip",value:function(){this.filmstripEl&&(this.filmstripEl.src=this.filmstripUrl)}},{key:"initFilmstrip",value:function(e,t,n){var i=this;this.filmstripUrl=e,this.filmstripContainerEl=this.containerEl.appendChild(document.createElement("div")),this.filmstripContainerEl.className="bp-media-filmstrip-container",this.filmstripContainerEl.innerHTML=_,this.filmstripEl=this.filmstripContainerEl.appendChild(document.createElement("img")),this.filmstripEl.className="bp-media-filmstrip",this.filmstripTimeEl=this.filmstripContainerEl.appendChild(document.createElement("div")),this.filmstripTimeEl.className="bp-media-filmstrip-timecode";var r=90*n;this.timeScrubber.getHandleEl().addEventListener("mousedown",this.timeScrubbingStartHandler),this.timeScrubber.getConvertedEl().addEventListener("mousemove",this.filmstripShowHandler),this.timeScrubber.getConvertedEl().addEventListener("mouseleave",this.filmstripHideHandler),this.filmstripEl.onload=function(){i.filmstripContainerEl&&(i.filmstripContainerEl.style.width=r+2+"px",i.filmstripContainerEl.querySelector(".bp-media-crawler-wrapper").style.display="none")},t.getPromise().then(this.setFilmstrip)}},{key:"timeScrubbingStartHandler",value:function(){this.isScrubbing=!0,document.addEventListener("mouseup",this.timeScrubbingStopHandler),document.addEventListener("mousemove",this.filmstripShowHandler)}},{key:"timeScrubbingStopHandler",value:function(e){this.isScrubbing=!1,document.removeEventListener("mouseup",this.timeScrubbingStopHandler),document.removeEventListener("mousemove",this.filmstripShowHandler),this.timeScrubberEl.contains(e.target)||(this.filmstripContainerEl.style.display="none")}},{key:"filmstripShowHandler",value:function(e){if(!this.isSettingsVisible()){var t=this.containerEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)*this.mediaEl.duration/t.width,r=Math.floor(i),o=this.filmstripEl.naturalWidth/100,a=r%100*-1*o,s=-90*Math.floor(r/100);this.filmstripEl.naturalWidth||(a=0,s=0,o=160);var l=Math.max(0,n-t.left-o/2),c=Math.min(l,t.width-o);this.filmstripEl.style.left=a+"px",this.filmstripEl.style.top=s+"px",this.filmstripContainerEl.style.display="block",this.filmstripContainerEl.style.left=c+"px",this.filmstripTimeEl.textContent=this.formatTime(i)}}},{key:"filmstripHideHandler",value:function(){this.isScrubbing||(this.filmstripContainerEl.style.display="none")}},{key:"isFocused",value:function(){return this.wrapperEl.contains(document.activeElement)}}]),t}(u.a))||a;t.a=O},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(5),l=n(246),c=n(247),u=n(129),h=n(1),d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i);if(r&&n.i(s.q)(e)){var o=n.i(s.n)("很抱歉,您的瀏覽器不支援預覽 {1}的功能。",["360 度影片"]);throw new Error(o)}return r}}]),t}(a.a);t.a=new g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(371),d=n.n(h),p=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:f,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:v;i(this,t);var l=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.containerEl=e,l.containerEl.innerHTML=d.a.replace("{{accessibilityText}}",n).replace(/>\s*<"),l.scrubberContainerEl=l.containerEl.querySelector(".bp-media-scrubber-container"),l.scrubberWrapperEl=l.containerEl.querySelector(".bp-media-scrubber-wrapper"),l.scrubberEl=l.containerEl.querySelector(".bp-media-scrubber"),l.scrubberEl.setAttribute("aria-label",n),l.scrubberEl.setAttribute("title",n),l.bufferedEl=l.scrubberEl.querySelector(".bp-media-scrubber-buffered"),l.convertedEl=l.scrubberEl.querySelector(".bp-media-scrubber-converted"),l.playedEl=l.scrubberEl.querySelector(".bp-media-scrubber-played"),l.handleEl=l.scrubberEl.querySelector(".bp-media-scrubber-handle"),l.setConvertedValue(s),l.setBufferedValue(a),l.setValue(o),l.playedEl.addEventListener("mousedown",l.mouseDownHandler),l.convertedEl.addEventListener("mousedown",l.mouseDownHandler),l.handleEl.addEventListener("mousedown",l.mouseDownHandler),l}return o(t,e),p(t,[{key:"destroy",value:function(){this.removeAllListeners(),this.destroyDocumentHandlers(),this.playedEl.removeEventListener("mousedown",this.mouseDownHandler),this.convertedEl.removeEventListener("mousedown",this.mouseDownHandler),this.handleEl.removeEventListener("mousedown",this.mouseDownHandler),this.scrubberContainerEl=void 0,this.scrubberWrapperEl=void 0,this.scrubberEl=void 0,this.bufferedEl=void 0,this.convertedEl=void 0,this.playedEl=void 0,this.handleEl=void 0,this.containerEl.innerHTML=""}},{key:"resize",value:function(e){this.scrubberWrapperEl.style.width=this.containerEl.clientWidth-e+"px",this.adjustScrubberHandle()}},{key:"adjustScrubberHandle",value:function(){var e=16,t=this.scrubberEl.clientWidth,n=100*(this.value*t-e/2)/t;this.handleEl.style.left=n+"%"}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;e!==this.value&&(this.value=Math.max(Math.min(e,this.convertedValue),f),this.playedEl.style.width=100*this.value+"%",this.adjustScrubberHandle())}},{key:"setBufferedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.bufferedValue&&(this.bufferedValue=Math.max(Math.min(e,this.convertedValue),this.value||f),this.bufferedEl.style.width=100*this.bufferedValue+"%")}},{key:"setConvertedValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e!==this.convertedValue&&(this.convertedValue=Math.max(Math.min(Math.max(e,this.convertedValue||f),v),f),this.convertedEl.style.width=100*this.convertedValue+"%")}},{key:"scrubbingHandler",value:function(e){var t=this.scrubberEl.getBoundingClientRect(),n=e.pageX,i=(n-t.left)/t.width;i=Math.max(Math.min(i,v),f),this.setValue(i),this.emit("valuechange")}},{key:"mouseDownHandler",value:function(e){!("number"!=typeof e.button||e.button<2)||e.ctrlKey||e.metaKey||(this.scrubbingHandler(e),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mouseleave",this.mouseUpHandler),document.addEventListener("mousemove",this.scrubbingHandler),this.scrubberWrapperEl.classList.add(g),e.preventDefault())}},{key:"mouseUpHandler",value:function(){this.scrubberWrapperEl.classList.remove(g),this.destroyDocumentHandlers()}},{key:"destroyDocumentHandlers",value:function(){document.removeEventListener("mousemove",this.scrubbingHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mouseleave",this.mouseUpHandler)}},{key:"getValue",value:function(){return this.value}},{key:"getHandleEl",value:function(){return this.handleEl}},{key:"getConvertedEl",value:function(){return this.convertedEl}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(13),u=n.n(c),h=n(40),d=n(5),p=n(6),f=function(){function e(e,t){for(var n=0;n\n
                                              \n
                                              速度
                                              \n
                                              正常
                                              \n
                                              '+p.s+'
                                              \n
                                              \n
                                              \n
                                              品質
                                              \n
                                              自動
                                              \n
                                              '+p.s+'
                                              \n
                                              \n
                                              \n
                                              '+p.t+'
                                              \n
                                              速度
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              0.25
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              0.5
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              正常
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              1.25
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              1.5
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              2.0
                                              \n
                                              \n
                                              \n
                                              '+p.t+'
                                              \n
                                              品質
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              480p
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              1080p
                                              \n
                                              \n
                                              \n
                                              '+p.l+'
                                              \n
                                              自動
                                              \n
                                              \n',_=l()(a=function(e){function t(e){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.containerEl=e,n.i(d.m)(o.containerEl,w),o.settingsEl=o.containerEl.lastElementChild,o.settingsEl.addEventListener("click",o.menuClickHandler),o.visible=!1,o.init(),o}return o(t,e),f(t,[{key:"init",value:function(){var e=h.a.get("media-quality")||"auto",t=h.a.get("media-speed")||"1.0";this.chooseOption("quality",e),this.chooseOption("speed",t)}},{key:"destroy",value:function(){this.settingsEl&&this.settingsEl.removeEventListener("click",this.menuClickHandler),document.removeEventListener("click",this.blurHandler)}},{key:"reset",value:function(){this.settingsEl.className=v}},{key:"getMediaSpeeds",value:function(){return E}},{key:"increaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)>e});t.length>0&&this.chooseOption("speed",t[0])}},{key:"decreaseSpeed",value:function(){var e=parseFloat(h.a.get("media-speed")||"1.0"),t=E.filter(function(t){return parseFloat(t)0&&this.chooseOption("speed",t[t.length-1])}},{key:"findParentDataType",value:function(e){for(var t=e;t&&t!==this.settingsEl;){if("string"==typeof t.getAttribute("data-type"))return t;t=t.parentNode}return null}},{key:"menuClickHandler",value:function(e){var t=this.findParentDataType(e.target);if(t){var n=t.getAttribute("data-type"),i=t.getAttribute("data-value");"menu"===n?this.reset():n&&i?this.chooseOption(n,i):n&&this.settingsEl.classList.add("bp-media-settings-show-"+n)}}},{key:"chooseOption",value:function(e,t){this.hide(),h.a.set("media-"+e,t),this.emit(e);var n=this.settingsEl.querySelector('[data-type="'+e+'"][data-value="'+t+'"]'),i=n.querySelector(b).textContent;this.settingsEl.querySelector('[data-type="'+e+'"] '+b).textContent=i,this.settingsEl.querySelector('[data-type="'+e+'"]'+y+"."+g).classList.remove(g),n.classList.add(g)}},{key:"blurHandler",value:function(e){this.settingsEl.contains(e.target)||this.hide()}},{key:"isVisible",value:function(){return this.visible}},{key:"show",value:function(){var e=this;this.visible=!0,this.containerEl.classList.add(m),setTimeout(function(){document.addEventListener("click",e.blurHandler)},0)}},{key:"hide",value:function(){this.reset(),this.containerEl.classList.remove(m),this.visible=!1,document.removeEventListener("click",this.blurHandler)}}]),t}(u.a))||a;t.a=_},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s=n(0),l=n.n(s),c=n(26),u=n(9),h=n(78),d=n(1),p=n(22),f=n(6),v=n(5),g=function(){function e(e,t){for(var n=0;n\n
                                              \n
                                              ".trim(),this.printPopup.addContent(t,!0),this.printPopup.addContent(e,!0),this.printPopup.loadingIndicator=t,this.printPopup.printCheckmark=e}},{key:"setupPDFUrl",value:function(){var e=this.options.file,t=n.i(p.g)(e,"pdf"),i=t.content.url_template;this.pdfUrl=this.createContentUrlWithAuthParams(i)}},{key:"setupIframe",value:function(){this.iframeEl=this.containerEl.appendChild(document.createElement("iframe")),this.iframeEl.setAttribute("width","100%"),this.iframeEl.setAttribute("height","100%"),this.iframeEl.setAttribute("frameborder",0),this.iframeEl.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups");var e=this.options,t=e.appHost,n=e.file,i=e.sharedLink,r=t+"/integrations/officeonline/openExcelOnlinePreviewer";if(i){var o=i.split("/s/")[1];if(o)r+="?s="+o+"&fileId="+n.id;else{var a=document.createElement("a");a.href=i;var s=a.hostname.split(".")[0];r+="?v="+a.pathname.split("/v/")[1]+"&vanity_subdomain="+s+"&fileId="+n.id}}else r+="?fileId="+n.id;this.iframeEl.src=r}},{key:"fetchPrintBlob",value:function(e){var t=this;return n.i(v.b)(e,"blob").then(function(e){t.printBlob=e})}},{key:"browserPrint",value:function(){if("function"==typeof window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(this.printBlob,"print.pdf")?this.emit("printsuccess"):this.emit("printerror")}else{var e=URL.createObjectURL(this.printBlob),t=window.open(e);if(t&&"function"==typeof t.print){var n=u.a.getName();"Chrome"===n?t.addEventListener("load",function(){t.print()}):"Safari"===n&&setTimeout(function(){t.print()},b)}!t||t.closed||void 0===t.closed?this.emit("printerror"):this.emit("printsuccess"),URL.revokeObjectURL(e)}}}]),t}(c.a))||a;t.a=w},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(252),l=n(22),c=n(1),u=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=e.shared_link&&e.shared_link.is_password_enabled;return(!n.i(l.c)(e,c.a)||e.size>d||r)&&i.push(p),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"determineViewer",this).call(this,e,i)}}]),t}(a.a);t.a=new v},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),s=function(){function e(e,t){for(var n=0;n'},e}}]),t}(u.a))||a;t.a=m},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(25),s=n(132),l=n(257),c=n(256),u=n(1),h=n(134),d=[{NAME:"CSV",CONSTRUCTOR:c.a,REP:"text",EXT:["csv","tsv"]},{NAME:"Markdown",CONSTRUCTOR:l.a,REP:"text",EXT:["md"]},{NAME:"Text",CONSTRUCTOR:s.a,REP:u.J,EXT:h.a},{NAME:"Text",CONSTRUCTOR:s.a,REP:"text",EXT:h.b}],p=function(e){function t(){i(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.viewers=d,e}return o(t,e),t}(a.a);t.a=new p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function o(e,t){for(var n=-1,i=e?e.length:0;++n-1}function C(e,t){var n=this.__data__,i=V(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Re}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ke(e){return!!e&&"object"==typeof e}function Ce(e){return be(e)?I(e):Q(e)}function Pe(){return[]}function Se(){return!1}var xe=200,Le="__lodash_hash_undefined__",Re=9007199254740991,Te="[object Arguments]",je="[object Boolean]",Ae="[object Date]",He="[object Function]",De="[object GeneratorFunction]",Me="[object Map]",Ne="[object Number]",Ie="[object Object]",Be="[object Promise]",Ve="[object RegExp]",ze="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object WeakMap]",We="[object ArrayBuffer]",Ge="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ke="[object Int8Array]",Je="[object Int16Array]",Ze="[object Int32Array]",Ye="[object Uint8Array]",$e="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,it=/\w*$/,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,at={};at[Te]=at["[object Array]"]=at[We]=at[Ge]=at[je]=at[Ae]=at[Qe]=at[Xe]=at[Ke]=at[Je]=at[Ze]=at[Me]=at[Ne]=at[Ie]=at[Ve]=at[ze]=at[Fe]=at[qe]=at[Ye]=at[$e]=at[et]=at[tt]=!0,at["[object Error]"]=at[He]=at[Ue]=!1;var st="object"==typeof e&&e&&e.Object===Object&&e,lt="object"==typeof self&&self&&self.Object===Object&&self,ct=st||lt||Function("return this")(),ut="object"==typeof t&&t&&!t.nodeType&&t,ht=ut&&"object"==typeof n&&n&&!n.nodeType&&n,dt=ht&&ht.exports===ut,pt=Array.prototype,ft=Function.prototype,vt=Object.prototype,gt=ct["__core-js_shared__"],mt=function(){var e=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yt=ft.toString,bt=vt.hasOwnProperty,Et=vt.toString,wt=RegExp("^"+yt.call(bt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dt?ct.Buffer:void 0,Ot=ct.Symbol,kt=ct.Uint8Array,Ct=d(Object.getPrototypeOf,Object),Pt=Object.create,St=vt.propertyIsEnumerable,xt=pt.splice,Lt=Object.getOwnPropertySymbols,Rt=_t?_t.isBuffer:void 0,Tt=d(Object.keys,Object),jt=se(ct,"DataView"),At=se(ct,"Map"),Ht=se(ct,"Promise"),Dt=se(ct,"Set"),Mt=se(ct,"WeakMap"),Nt=se(Object,"create"),It=ve(jt),Bt=ve(At),Vt=ve(Ht),zt=ve(Dt),Ft=ve(Mt),qt=Ot?Ot.prototype:void 0,Ut=qt?qt.valueOf:void 0;f.prototype.clear=v,f.prototype.delete=g,f.prototype.get=m,f.prototype.has=y,f.prototype.set=b,E.prototype.clear=w,E.prototype.delete=_,E.prototype.get=O,E.prototype.has=k,E.prototype.set=C,P.prototype.clear=S,P.prototype.delete=x,P.prototype.get=L,P.prototype.has=R,P.prototype.set=T,j.prototype.clear=A,j.prototype.delete=H,j.prototype.get=D,j.prototype.has=M,j.prototype.set=N;var Wt=Lt?d(Lt,Object):Pe,Gt=W;(jt&&Gt(new jt(new ArrayBuffer(1)))!=Ge||At&&Gt(new At)!=Me||Ht&&Gt(Ht.resolve())!=Be||Dt&&Gt(new Dt)!=ze||Mt&&Gt(new Mt)!=Ue)&&(Gt=function(e){var t=Et.call(e),n=t==Ie?e.constructor:void 0,i=n?ve(n):void 0;if(i)switch(i){case It:return Ge;case Bt:return Me;case Vt:return Be;case zt:return ze;case Ft:return Ue}return t});var Qt=Array.isArray,Xt=Rt||Se;n.exports=ge}).call(t,n(32),n(472)(e))},function(e,t,n){var r,o,a;!function(i,s){o=[n(70)],r=i,void 0!==(a="function"==typeof r?r.apply(t,o):r)&&(e.exports=a)}(function(e){return e.createModule("ClassApplier",["WrappedSelection"],function(e,t){function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)return!1;return!0}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function o(e,t){return!!e&&new RegExp("(?:^|\\s)"+t+"(?:\\s|$)").test(e)}function a(e,t){return"object"==typeof e.classList?e.classList.contains(t):o("string"==typeof e.className?e.className:e.getAttribute("class"),t)}function s(e,t){if("object"==typeof e.classList)e.classList.add(t);else{var n="string"==typeof e.className,i=n?e.className:e.getAttribute("class");i?o(i,t)||(i+=" "+t):i=t,n?e.className=i:e.setAttribute("class",i)}}function l(e){return"string"==typeof e.className?e.className:e.getAttribute("class")}function c(e){return e&&e.split(/\s+/).sort().join(" ")}function u(e){return c(l(e))}function h(e,t){return u(e)==u(t)}function d(e,t){for(var n=t.split(/\s+/),i=0,o=n.length;ir&&++l,o!=t||a!=n&&a!=n+1||(s=i,l+=r-n),o==t&&a>n+1&&--l,e.node=s,e.offset=l}function v(e,t,n){e.node==t&&e.offset>n&&--e.offset}function g(e,t,n,i){n==-1&&(n=t.childNodes.length);var r=e.parentNode,o=N.getNodeIndex(e);z(i,function(e){f(e,r,o,t,n)}),t.childNodes.length==n?t.appendChild(e):t.insertBefore(e,t.childNodes[n])}function m(e,t){var n=e.parentNode,i=N.getNodeIndex(e);z(t,function(e){v(e,n,i)}),N.removeNode(e)}function y(e,t,n,i,r){for(var o,a=[];o=e.firstChild;)g(o,t,n++,r),a.push(o);return i&&m(e,r),a}function b(e,t){return y(e,e.parentNode,N.getNodeIndex(e),!0,t)}function E(e,t){var n=e.cloneRange();n.selectNodeContents(t);var i=n.intersection(e);return""!=(i?i.toString():"")}function w(e){for(var t,n=e.getNodes([3]),i=0;(t=n[i])&&!E(e,t);)++i;for(var r=n.length-1;(t=n[r])&&!E(e,t);)--r;return n.slice(i,r+1)}function _(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,r,o=0,a=e.attributes.length;o0&&t1){var i,r=N.getNodeIndex(n),o=[],a=0;z(t,function(t,s){i=t.parentNode,s>0&&(i.removeChild(t),i.hasChildNodes()||N.removeNode(i),e&&z(e,function(e){e.node==t&&(e.node=n,e.offset+=a),e.node==i&&e.offset>r&&--e.offset==r+1&&se.start},isContiguousWith:function(e){return this.start==e.end||this.end==e.start},union:function(e){return new s(Math.min(this.start,e.start),Math.max(this.end,e.end))},intersection:function(e){return new s(Math.max(this.start,e.start),Math.min(this.end,e.end))},getComplements:function(e){var t=[];if(this.start>=e.start){if(this.end<=e.end)return[];t.push(new s(e.end,this.end))}else t.push(new s(this.start,Math.min(this.end,e.start))),this.end>e.end&&t.push(new s(e.end,this.end));return t},toString:function(){return"[CharacterRange("+this.start+", "+this.end+")]"}},s.fromCharacterRange=function(e){return new s(e.start,e.end)};var m={rangeToCharacterRange:function(e,t){var n=e.getBookmark(t);return new s(n.start,n.end)},characterRangeToRange:function(t,n,i){var r=e.createRange(t);return r.moveToBookmark({start:n.start,end:n.end,containerNode:i}),r},serializeSelection:function(e,t){for(var n=e.getAllRanges(),i=n.length,r=[],o=1==i&&e.isBackward(),a=0,s=n.length;a0},serialize:function(e){var t,i,r,o,s=this,l=s.highlights;return l.sort(n),e=p(e,{serializeHighlightText:!1,type:s.converter.type}),t=e.type,r=t!=s.converter.type,r&&(o=a(t)),i=["type:"+t],f(l,function(t){var n,a=t.characterRange;r&&(n=t.getContainerElement(),a=o.rangeToCharacterRange(s.converter.characterRangeToRange(s.doc,a,n),n));var l=[a.start,a.end,t.id,t.classApplier.className,t.containerElementId];e.serializeHighlightText&&l.push(t.getText()),i.push(l.join("$"))}),i.join("|")},deserialize:function(e){var t,n,r,o=e.split("|"),c=[],u=o[0],h=!1;if(!u||!(t=/^type:(\w+)$/.exec(u)))throw new Error("Serialized highlights are invalid.");n=t[1],n!=this.converter.type&&(r=a(n),h=!0),o.shift();for(var d,p,f,v,g,m,y=o.length;y-- >0;){if(m=o[y].split("$"),f=new s(+m[0],+m[1]),v=m[4]||null,h&&(g=i(this.doc,v),f=this.converter.rangeToCharacterRange(r.characterRangeToRange(this.doc,f,g),g)),!(d=this.classAppliers[m[3]]))throw new Error("No class applier found for class '"+m[3]+"'");p=new l(this.doc,f,d,this.converter,parseInt(m[2]),v),p.apply(),c.push(p)}this.highlights=c}},e.Highlighter=c,e.createHighlighter=function(e,t){return new c(e,t)}}),e})},function(e,t,n){var i,r,o;!function(a,s){r=[n(70)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(function(e){return e.createModule("SaveRestore",["WrappedRange"],function(e,t){function n(e,t){return(t||document).getElementById(e)}function i(e,t){var n,i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),r=f.getDocument(e.startContainer),o=e.cloneRange();return o.collapse(t),n=r.createElement("span"),n.id=i,n.style.lineHeight="0",n.style.display="none",n.className="rangySelectionBoundary",n.appendChild(r.createTextNode(m)),o.insertNode(n),n}function r(e,i,r,o){var a=n(r,e);a?(i[o?"setStartBefore":"setEndBefore"](a),v(a)):t.warn("Marker element has been removed. Cannot restore selection.")}function o(e,t){return t.compareBoundaryPoints(e.START_TO_START,e)}function a(t,n){var r,o,a=e.DomRange.getRangeDocument(t),s=t.toString(),l=g(n);return t.collapsed?(o=i(t,!1),{document:a,markerId:o.id,collapsed:!0}):(o=i(t,!1),r=i(t,!0),{document:a,startMarkerId:r.id,endMarkerId:o.id,collapsed:!1,backward:l,toString:function(){return"original text: '"+s+"', new text: '"+t.toString()+"'"}})}function s(i,o){var a=i.document;void 0===o&&(o=!0);var s=e.createRange(a);if(i.collapsed){var l=n(i.markerId,a);if(l){l.style.display="inline";var c=l.previousSibling;c&&3==c.nodeType?(v(l),s.collapseToPoint(c,c.length)):(s.collapseBefore(l),v(l))}else t.warn("Marker element has been removed. Cannot restore selection.")}else r(a,s,i.startMarkerId,!0),r(a,s,i.endMarkerId,!1);return o&&s.normalizeBoundaries(),s}function l(t,i){var r,s,l=[],c=g(i);t=t.slice(0),t.sort(o);for(var u=0,h=t.length;u=0;--u)r=t[u],s=e.DomRange.getRangeDocument(r),r.collapsed?r.collapseAfter(n(l[u].markerId,s)):(r.setEndBefore(n(l[u].endMarkerId,s)),r.setStartAfter(n(l[u].startMarkerId,s)));return l}function c(n){if(!e.isSelectionValid(n))return t.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null;var i=e.getSelection(n),r=i.getAllRanges(),o=1==r.length&&i.isBackward(),a=l(r,o);return o?i.setSingleRange(r[0],o):i.setRanges(r),{win:n,rangeInfos:a,restored:!1}}function u(e){for(var t=[],n=e.length,i=n-1;i>=0;i--)t[i]=s(e[i],!0);return t}function h(t,n){if(!t.restored){var i=t.rangeInfos,r=e.getSelection(t.win),o=u(i);1==i.length&&n&&e.features.selectionHasExtend&&i[0].backward?(r.removeAllRanges(),r.addRange(o[0],!0)):r.setRanges(o),t.restored=!0}}function d(e,t){var i=n(t,e);i&&v(i)}function p(e){for(var t,n=e.rangeInfos,i=0,r=n.length;i\n \n \n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n \n \n \n \n \n\n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n \n'},function(e,t){e.exports='\n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='\n \n \n \n\n'},function(e,t){e.exports='\n \n \n\n'},function(e,t){e.exports='
                                              \n
                                              \n \n \n
                                              \n \n \n \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n \n
                                              \n
                                              \n \n
                                              \n
                                              \n
                                              \n \n \n
                                              \n'},function(e,t){e.exports='
                                              \n
                                              \n
                                              \n \n
                                              \n
                                              \n \n
                                              \n
                                              \n
                                              \n \n  / \n \n \n \n
                                              \n
                                              \n'},function(e,t){e.exports='
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n
                                              \n {{accessibilityText}}\n
                                              \n
                                              \n
                                              \n
                                              \n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function r(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),r(t)}function a(e){var t=new FileReader;return t.readAsText(e),r(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(p.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(p.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},p.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(e){var t=e.toUpperCase();return f.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var i=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function u(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function h(e){var t=new n;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}function d(e,t){t||(t={}),this._initBody(e),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!self.fetch){n.prototype.append=function(n,i){n=e(n),i=t(i);var r=this.map[n];r||(r=[],this.map[n]=r),r.push(i)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,i){this.map[e(n)]=[t(i)]},n.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];d.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},self.Headers=n,self.Request=c,self.Response=d,self.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var a=new XMLHttpRequest;a.onload=function(){var e=1223===a.status?204:a.status;if(e<100||e>599)return void i(new TypeError("Network request failed"));var t={status:e,statusText:a.statusText,headers:h(a),url:r()};n(new d("response"in a?a.response:a.responseText,t))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(e,t,n){e.exports=n(201)}]); \ No newline at end of file diff --git a/dist/0.112.0/zh-TW/src/lib/loadingIcon.gif b/dist/0.112.0/zh-TW/src/lib/loadingIcon.gif deleted file mode 100644 index 1c72ebb554be018511ae972c3f2361dff02dce02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2545 zcma*pX;2es8VB%~zPr=ibVMCx-JQ^BhLDAsK)^**h(ZDp9YGuzZ%~j!}+w%FI;|aC7){7CdVvG)P{bng1y9Te*f}~*`1kQl$jwb z$tlW~rRS!X?#xfm_&6tTdp_`cjgYwbRFLNdoJCN$S-yhg`ZnC-yvedRSmOh%;Y`Gl6bY$Z-}#C=#F4%9!I1b zWQ~f+9P?;vhCxWwlwl=lrWG|7IYo;{jjmzJ5R9?f>n%-d@>kLINUc z4wM5dAO;kq<$}Dk{2-u0$I6@2N}&cUx9nmV1dYc8jfC}%=F9WCg^OQK9C6poh#2!A z3^EU*UFZvS^)?bu3T?J;@Ahb~%I?+@4!l5!*TjC}GIslNan-RCrrd~PdHYnNLJk+m&`$Y+NV(e>CCu%R#_8GqY4cv#j`#uRWdsg9DxWy(?oOvgCU}&@jy%c!H&-Q zqXJxajAtmQRoRa9V-RFXXh-bK*;Fum{BjpkYQGX~i@OZ^Dx0n&H}kvGKqQ?w(6iGXu_g08T|_hp#ZvFzIwKF*a=oMJ~3UGAjZ?g}GOxm44td zXoyYrU*I=y*vHv89hkYH(v5R#wc)BC3dZJKb3K)f>zaM3%JP(mpecViP0eKKYf3zy z->jx_mc?mCtPEvCQ?uppk?eLJt}_IR7giW%Jr)RyI!+E-voIs*lXI*z`GQc_&D#X( z{6G};HPYj6O|$lXxBJeDaweqa{4L=tOZCjTI^&UOxXg})LRG_cr^B9Rqt(i5ORbQX zq`_xCRsH>xEYY%&*Nyi#{S_JZNlTm#K56`RI%7^amom;*h90Si&g1CfaFV3D|a!`3Y-GKKbL*KSbl z>I96`TR@CqPJl(>QqB~RvK~-U)`e`l4LIqj+IU^~yyIe*|BRVB>4Bup%j{tLdKz4j zY^<8P8m~GRGz*yv0&-RJE+-keJ+%m3wNeopzsltWd->eWmBVwUr)pX` zK~CD<;~Z*Uy3W`3+MrEYxm5qYQ!z%YI;y7DTG`UVH0;@{M{!B&id_}3DBQ?zsotuR zEGLdRx25nLm%-wjlnEi;-aN_1S7???rO~WgA67jjr&(vRa3y$u#kqJbeKnw z{!T!1li9>M+sJ6AUe+*9d}2uGjhzd z|L1Rtp8uTGYyZoQ*`DS^m2dw-X{a)l+3m?ncvn^+O>)hdd3(hMtlhkRGns{<8c0I! zDDjpmwtj?@!6kA|iu3q+Ai;@JR+ zfk+ln&YFC{4bhK6IxVgLs4W%^8Lk`qzWU*L>yq0A3;l}{!wKZ!ue)C)SKI)9dl1hl zhIRLV@8E}rwvE{gX(}$f6x*k)_`*Ijt1=EU-Ls6-(phomeQBgtUs z5Xz~Cd*nE)Ac!0i4ep}Z1AugMB(&F?)#CU{Qc{Sp^vKsdL}vRB30H+Bbzrn`M##H3 z{W8dc_mDroEE+p8_}mnJtzZ4!RNe)zhB)Ds;S57nYSJxtek>^~&(7B+N5MPf2+2xx z5Dl&4X|c@f{Kd|z1r+N|$DmsoVp*3yOdxT^J^-VAk)Z@$4^XrPrFP-Co+MXZ+KJ(W z{JNYvraLLWA;&tRhIKOvhW|HC|L-dLvAUF(MG0(Nl?4tB{RzN7I(}Cb%hwN{crFC8 zji#aJElKvDFV+&VI1V?oUMA>*kto0^;3W8FQBSZ|{ z$v~TqE=(8DZa^i$^oht&h};P1N&wMXorKh*Z68gPV&ouy>%f36Oqkwemyeas$Qbz# zV?7Jy%o7KY6^I=P@eCji%W`o5sf(5hySYo9$l4e2`(hIV_?=H-#R6}0$WVA|*(K@3 z=5?@RlcLh(meW%A4)hGzcvEpm(_w?>zhL*i&s9$2>r zAtk{8Cia|+Y+V!uX9BtpXoF%lswuRKsM!pSs!?yhlCy!269K0|b M?FSZn2B>%I-}ej|s{jB1 diff --git a/dist/0.112.0/third-party/doc/cmaps/78-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/78-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/78-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/78-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/78-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/78-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/78-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78ms-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/78ms-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78ms-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78ms-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/78ms-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/78ms-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/78ms-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/78ms-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/83pv-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/83pv-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/83pv-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/83pv-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/90ms-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/90ms-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/90ms-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/90ms-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/90ms-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/90ms-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/90ms-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/90ms-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/90msp-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/90msp-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/90msp-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/90msp-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/90msp-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/90msp-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/90msp-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/90msp-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/90pv-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/90pv-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/90pv-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/90pv-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/90pv-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/90pv-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/90pv-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/90pv-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Add-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/Add-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Add-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Add-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Add-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/Add-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Add-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Add-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Add-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/Add-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Add-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Add-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Add-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/Add-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Add-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Add-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-0.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-0.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-0.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-0.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-1.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-1.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-1.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-1.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-3.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-3.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-3.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-3.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-4.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-4.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-4.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-4.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-5.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-5.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-5.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-5.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-6.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-6.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-6.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-6.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-UCS2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-UCS2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-CNS1-UCS2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-CNS1-UCS2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-0.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-0.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-0.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-0.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-1.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-1.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-1.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-1.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-3.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-3.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-3.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-3.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-4.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-4.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-4.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-4.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-5.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-5.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-5.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-5.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-UCS2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-UCS2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-GB1-UCS2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-GB1-UCS2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-0.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-0.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-0.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-0.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-1.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-1.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-1.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-1.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-3.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-3.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-3.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-3.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-4.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-4.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-4.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-4.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-5.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-5.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-5.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-5.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-6.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-6.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-6.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-6.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-UCS2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-UCS2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Japan1-UCS2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Japan1-UCS2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-0.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-0.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-0.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-0.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-1.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-1.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-1.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-1.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-UCS2.bcmap b/dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-UCS2.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Adobe-Korea1-UCS2.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Adobe-Korea1-UCS2.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/B5pc-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/B5pc-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/B5pc-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/B5pc-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/B5pc-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/B5pc-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/B5pc-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/B5pc-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/CNS-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/CNS-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/CNS-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/CNS-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/CNS-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/CNS-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/CNS-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/CNS-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/CNS1-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/CNS1-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/CNS1-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/CNS1-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/CNS1-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/CNS1-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/CNS1-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/CNS1-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/CNS2-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/CNS2-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/CNS2-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/CNS2-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/CNS2-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/CNS2-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/CNS2-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/CNS2-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/ETHK-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/ETHK-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/ETHK-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/ETHK-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/ETHK-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/ETHK-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/ETHK-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/ETHK-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/ETen-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/ETen-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/ETen-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/ETen-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/ETen-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/ETen-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/ETen-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/ETen-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/ETenms-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/ETenms-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/ETenms-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/ETenms-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/ETenms-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/ETenms-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/ETenms-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/ETenms-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Ext-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/Ext-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Ext-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Ext-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Ext-RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/Ext-RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Ext-RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Ext-RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Ext-RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/Ext-RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Ext-RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Ext-RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Ext-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/Ext-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Ext-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Ext-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GB-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GB-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GB-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GB-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GB-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GB-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GB-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GB-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GB-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GB-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GB-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GB-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GB-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GB-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GB-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GB-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBK-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBK-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBK-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBK-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBK-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBK-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBK-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBK-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBK2K-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBK2K-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBK2K-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBK2K-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBK2K-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBK2K-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBK2K-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBK2K-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBKp-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBKp-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBKp-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBKp-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBKp-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBKp-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBKp-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBKp-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBT-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBT-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBT-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBT-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBT-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBT-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBT-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBT-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBT-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBT-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBT-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBT-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBT-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBT-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBT-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBT-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBTpc-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBTpc-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBTpc-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBTpc-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBTpc-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBTpc-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBTpc-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBTpc-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBpc-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBpc-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBpc-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBpc-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/GBpc-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/GBpc-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/GBpc-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/GBpc-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/H.bcmap b/dist/third-party/doc/0.112.0/cmaps/H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKdla-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKdla-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKdla-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKdla-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKdla-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKdla-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKdla-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKdla-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKdlb-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKdlb-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKdlb-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKdlb-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKdlb-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKdlb-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKdlb-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKdlb-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKgccs-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKgccs-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKgccs-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKgccs-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKgccs-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKgccs-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKgccs-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKgccs-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKm314-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKm314-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKm314-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKm314-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKm314-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKm314-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKm314-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKm314-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKm471-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKm471-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKm471-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKm471-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKm471-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKm471-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKm471-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKm471-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKscs-B5-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKscs-B5-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKscs-B5-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKscs-B5-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/HKscs-B5-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/HKscs-B5-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/HKscs-B5-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/HKscs-B5-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Hankaku.bcmap b/dist/third-party/doc/0.112.0/cmaps/Hankaku.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Hankaku.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Hankaku.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Hiragana.bcmap b/dist/third-party/doc/0.112.0/cmaps/Hiragana.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Hiragana.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Hiragana.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSC-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSC-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSC-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSC-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSC-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSC-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSC-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSC-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSC-Johab-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSC-Johab-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSC-Johab-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSC-Johab-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSC-Johab-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSC-Johab-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSC-Johab-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSC-Johab-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-HW-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-HW-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-HW-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-HW-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSCms-UHC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSCms-UHC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSCpc-EUC-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSCpc-EUC-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSCpc-EUC-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSCpc-EUC-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/KSCpc-EUC-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/KSCpc-EUC-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/KSCpc-EUC-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/KSCpc-EUC-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Katakana.bcmap b/dist/third-party/doc/0.112.0/cmaps/Katakana.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Katakana.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Katakana.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/LICENSE b/dist/third-party/doc/0.112.0/cmaps/LICENSE similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/LICENSE rename to dist/third-party/doc/0.112.0/cmaps/LICENSE diff --git a/dist/0.112.0/third-party/doc/cmaps/NWP-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/NWP-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/NWP-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/NWP-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/NWP-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/NWP-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/NWP-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/NWP-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/RKSJ-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/RKSJ-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/RKSJ-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/RKSJ-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/RKSJ-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/RKSJ-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/RKSJ-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/RKSJ-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/Roman.bcmap b/dist/third-party/doc/0.112.0/cmaps/Roman.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/Roman.bcmap rename to dist/third-party/doc/0.112.0/cmaps/Roman.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UCS2-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UCS2-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UCS2-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UCS2-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF16-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF16-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF16-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF16-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF8-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF8-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF8-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniCNS-UTF8-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UCS2-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UCS2-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UCS2-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UCS2-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UCS2-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UCS2-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UCS2-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UCS2-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UTF16-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UTF16-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UTF16-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UTF16-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UTF16-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UTF16-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UTF16-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UTF16-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UTF8-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UTF8-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UTF8-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UTF8-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniGB-UTF8-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniGB-UTF8-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniGB-UTF8-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniGB-UTF8-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-HW-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-HW-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-HW-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-HW-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UCS2-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF16-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF16-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF16-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF16-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF8-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF8-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF8-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS-UTF8-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF16-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF16-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF16-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF16-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF8-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF8-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF8-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJIS2004-UTF8-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISPro-UCS2-HW-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-HW-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISPro-UCS2-HW-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-HW-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISPro-UCS2-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISPro-UCS2-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISPro-UTF8-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISPro-UTF8-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISPro-UTF8-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISPro-UTF8-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISX0213-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISX0213-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISX0213-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISX0213-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISX02132004-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISX02132004-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniJISX02132004-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniJISX02132004-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UCS2-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UCS2-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UCS2-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UCS2-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UCS2-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UCS2-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UCS2-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UCS2-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UTF16-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UTF16-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UTF16-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UTF16-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UTF16-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UTF16-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UTF16-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UTF16-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UTF32-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UTF32-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UTF32-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UTF32-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UTF32-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UTF32-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UTF32-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UTF32-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UTF8-H.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UTF8-H.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UTF8-H.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UTF8-H.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/UniKS-UTF8-V.bcmap b/dist/third-party/doc/0.112.0/cmaps/UniKS-UTF8-V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/UniKS-UTF8-V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/UniKS-UTF8-V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/V.bcmap b/dist/third-party/doc/0.112.0/cmaps/V.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/V.bcmap rename to dist/third-party/doc/0.112.0/cmaps/V.bcmap diff --git a/dist/0.112.0/third-party/doc/cmaps/WP-Symbol.bcmap b/dist/third-party/doc/0.112.0/cmaps/WP-Symbol.bcmap similarity index 100% rename from dist/0.112.0/third-party/doc/cmaps/WP-Symbol.bcmap rename to dist/third-party/doc/0.112.0/cmaps/WP-Symbol.bcmap diff --git a/dist/0.112.0/third-party/doc/compatibility.js b/dist/third-party/doc/0.112.0/compatibility.js similarity index 100% rename from dist/0.112.0/third-party/doc/compatibility.js rename to dist/third-party/doc/0.112.0/compatibility.js diff --git a/dist/0.112.0/third-party/doc/compatibility.min.js b/dist/third-party/doc/0.112.0/compatibility.min.js similarity index 100% rename from dist/0.112.0/third-party/doc/compatibility.min.js rename to dist/third-party/doc/0.112.0/compatibility.min.js diff --git a/dist/0.112.0/third-party/doc/cursors/highlight.cur b/dist/third-party/doc/0.112.0/cursors/highlight.cur similarity index 100% rename from dist/0.112.0/third-party/doc/cursors/highlight.cur rename to dist/third-party/doc/0.112.0/cursors/highlight.cur diff --git a/dist/0.112.0/third-party/doc/cursors/point.cur b/dist/third-party/doc/0.112.0/cursors/point.cur similarity index 100% rename from dist/0.112.0/third-party/doc/cursors/point.cur rename to dist/third-party/doc/0.112.0/cursors/point.cur diff --git a/dist/0.112.0/third-party/doc/exif.js b/dist/third-party/doc/0.112.0/exif.js similarity index 100% rename from dist/0.112.0/third-party/doc/exif.js rename to dist/third-party/doc/0.112.0/exif.js diff --git a/dist/0.112.0/third-party/doc/exif.min.js b/dist/third-party/doc/0.112.0/exif.min.js similarity index 100% rename from dist/0.112.0/third-party/doc/exif.min.js rename to dist/third-party/doc/0.112.0/exif.min.js diff --git a/dist/0.112.0/third-party/doc/pdf.js b/dist/third-party/doc/0.112.0/pdf.js similarity index 100% rename from dist/0.112.0/third-party/doc/pdf.js rename to dist/third-party/doc/0.112.0/pdf.js diff --git a/dist/0.112.0/third-party/doc/pdf.min.js b/dist/third-party/doc/0.112.0/pdf.min.js similarity index 100% rename from dist/0.112.0/third-party/doc/pdf.min.js rename to dist/third-party/doc/0.112.0/pdf.min.js diff --git a/dist/0.112.0/third-party/doc/pdf.worker.js b/dist/third-party/doc/0.112.0/pdf.worker.js similarity index 100% rename from dist/0.112.0/third-party/doc/pdf.worker.js rename to dist/third-party/doc/0.112.0/pdf.worker.js diff --git a/dist/0.112.0/third-party/doc/pdf.worker.min.js b/dist/third-party/doc/0.112.0/pdf.worker.min.js similarity index 100% rename from dist/0.112.0/third-party/doc/pdf.worker.min.js rename to dist/third-party/doc/0.112.0/pdf.worker.min.js diff --git a/dist/0.112.0/third-party/doc/pdf_viewer.css b/dist/third-party/doc/0.112.0/pdf_viewer.css similarity index 100% rename from dist/0.112.0/third-party/doc/pdf_viewer.css rename to dist/third-party/doc/0.112.0/pdf_viewer.css diff --git a/dist/0.112.0/third-party/doc/pdf_viewer.js b/dist/third-party/doc/0.112.0/pdf_viewer.js similarity index 100% rename from dist/0.112.0/third-party/doc/pdf_viewer.js rename to dist/third-party/doc/0.112.0/pdf_viewer.js diff --git a/dist/0.112.0/third-party/doc/pdf_viewer.min.js b/dist/third-party/doc/0.112.0/pdf_viewer.min.js similarity index 100% rename from dist/0.112.0/third-party/doc/pdf_viewer.min.js rename to dist/third-party/doc/0.112.0/pdf_viewer.min.js diff --git a/dist/0.112.0/third-party/media/shaka-player.compiled.js b/dist/third-party/media/0.112.0/shaka-player.compiled.js similarity index 100% rename from dist/0.112.0/third-party/media/shaka-player.compiled.js rename to dist/third-party/media/0.112.0/shaka-player.compiled.js diff --git a/dist/0.112.0/third-party/model3d/HDR_Env0.png b/dist/third-party/model3d/0.112.0/HDR_Env0.png similarity index 100% rename from dist/0.112.0/third-party/model3d/HDR_Env0.png rename to dist/third-party/model3d/0.112.0/HDR_Env0.png diff --git a/dist/0.112.0/third-party/model3d/HDR_Env1.png b/dist/third-party/model3d/0.112.0/HDR_Env1.png similarity index 100% rename from dist/0.112.0/third-party/model3d/HDR_Env1.png rename to dist/third-party/model3d/0.112.0/HDR_Env1.png diff --git a/dist/0.112.0/third-party/model3d/HDR_Env2.png b/dist/third-party/model3d/0.112.0/HDR_Env2.png similarity index 100% rename from dist/0.112.0/third-party/model3d/HDR_Env2.png rename to dist/third-party/model3d/0.112.0/HDR_Env2.png diff --git a/dist/0.112.0/third-party/model3d/WebVR/VRConfig.js b/dist/third-party/model3d/0.112.0/WebVR/VRConfig.js similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/VRConfig.js rename to dist/third-party/model3d/0.112.0/WebVR/VRConfig.js diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/1024/1.jpg b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/1.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/1024/1.jpg rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/1.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/1024/2.jpg b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/2.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/1024/2.jpg rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/2.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/64/1.jpg b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/1.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/64/1.jpg rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/1.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/64/2.jpg b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/2.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchImages/64/2.jpg rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/2.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchLeft/entities.json b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/entities.json similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchLeft/entities.json rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/entities.json diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchLeft/geometry.bin b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/geometry.bin similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchLeft/geometry.bin rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/geometry.bin diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchRight/entities.json b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchRight/entities.json similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchRight/entities.json rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchRight/entities.json diff --git a/dist/0.112.0/third-party/model3d/WebVR/oculusTouchRight/geometry.bin b/dist/third-party/model3d/0.112.0/WebVR/oculusTouchRight/geometry.bin similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/oculusTouchRight/geometry.bin rename to dist/third-party/model3d/0.112.0/WebVR/oculusTouchRight/geometry.bin diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/entities.json b/dist/third-party/model3d/0.112.0/WebVR/viveController/entities.json similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/entities.json rename to dist/third-party/model3d/0.112.0/WebVR/viveController/entities.json diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/geometry.bin b/dist/third-party/model3d/0.112.0/WebVR/viveController/geometry.bin similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/geometry.bin rename to dist/third-party/model3d/0.112.0/WebVR/viveController/geometry.bin diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/2048/1.png b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/2048/1.png similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/2048/1.png rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/2048/1.png diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/2048/2.jpg b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/2048/2.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/2048/2.jpg rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/2048/2.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/2048/3.jpg b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/2048/3.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/2048/3.jpg rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/2048/3.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/256/4.png b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/256/4.png similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/256/4.png rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/256/4.png diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/1.png b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/1.png similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/1.png rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/1.png diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/2.jpg b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/2.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/2.jpg rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/2.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/3.jpg b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/3.jpg similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/3.jpg rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/3.jpg diff --git a/dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/4.png b/dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/4.png similarity index 100% rename from dist/0.112.0/third-party/model3d/WebVR/viveController/images/64/4.png rename to dist/third-party/model3d/0.112.0/WebVR/viveController/images/64/4.png diff --git a/dist/0.112.0/third-party/model3d/box3d-runtime.min.js b/dist/third-party/model3d/0.112.0/box3d-runtime.min.js similarity index 100% rename from dist/0.112.0/third-party/model3d/box3d-runtime.min.js rename to dist/third-party/model3d/0.112.0/box3d-runtime.min.js diff --git a/dist/0.112.0/third-party/model3d/boxsdk.min.js b/dist/third-party/model3d/0.112.0/boxsdk.min.js similarity index 100% rename from dist/0.112.0/third-party/model3d/boxsdk.min.js rename to dist/third-party/model3d/0.112.0/boxsdk.min.js diff --git a/dist/0.112.0/third-party/model3d/matcap.png b/dist/third-party/model3d/0.112.0/matcap.png similarity index 100% rename from dist/0.112.0/third-party/model3d/matcap.png rename to dist/third-party/model3d/0.112.0/matcap.png diff --git a/dist/0.112.0/third-party/model3d/three.min.js b/dist/third-party/model3d/0.112.0/three.min.js similarity index 100% rename from dist/0.112.0/third-party/model3d/three.min.js rename to dist/third-party/model3d/0.112.0/three.min.js diff --git a/dist/0.112.0/third-party/model3d/webvr-polyfill.js b/dist/third-party/model3d/0.112.0/webvr-polyfill.js similarity index 100% rename from dist/0.112.0/third-party/model3d/webvr-polyfill.js rename to dist/third-party/model3d/0.112.0/webvr-polyfill.js diff --git a/dist/0.112.0/third-party/swf/swfobject.js b/dist/third-party/swf/0.112.0/swfobject.js similarity index 100% rename from dist/0.112.0/third-party/swf/swfobject.js rename to dist/third-party/swf/0.112.0/swfobject.js diff --git a/dist/0.112.0/third-party/text/github-markdown.css b/dist/third-party/text/0.112.0/github-markdown.css similarity index 100% rename from dist/0.112.0/third-party/text/github-markdown.css rename to dist/third-party/text/0.112.0/github-markdown.css diff --git a/dist/0.112.0/third-party/text/github.css b/dist/third-party/text/0.112.0/github.css similarity index 100% rename from dist/0.112.0/third-party/text/github.css rename to dist/third-party/text/0.112.0/github.css diff --git a/dist/0.112.0/third-party/text/highlight.min.js b/dist/third-party/text/0.112.0/highlight.min.js similarity index 100% rename from dist/0.112.0/third-party/text/highlight.min.js rename to dist/third-party/text/0.112.0/highlight.min.js diff --git a/dist/0.112.0/third-party/text/papaparse.js b/dist/third-party/text/0.112.0/papaparse.js similarity index 100% rename from dist/0.112.0/third-party/text/papaparse.js rename to dist/third-party/text/0.112.0/papaparse.js diff --git a/dist/0.112.0/third-party/text/papaparse.min.js b/dist/third-party/text/0.112.0/papaparse.min.js similarity index 100% rename from dist/0.112.0/third-party/text/papaparse.min.js rename to dist/third-party/text/0.112.0/papaparse.min.js diff --git a/dist/0.112.0/third-party/text/remarkable.min.js b/dist/third-party/text/0.112.0/remarkable.min.js similarity index 100% rename from dist/0.112.0/third-party/text/remarkable.min.js rename to dist/third-party/text/0.112.0/remarkable.min.js diff --git a/src/lib/__tests__/util-test.js b/src/lib/__tests__/util-test.js index 595b4b90d..3e2f57630 100644 --- a/src/lib/__tests__/util-test.js +++ b/src/lib/__tests__/util-test.js @@ -348,7 +348,7 @@ describe('lib/util', () => { assert.equal(loc.pathname, '/path/version/locale/file.js'); assert.equal(loc.version, 'version'); assert.equal(loc.baseURI, 'https://hostname:100/path/version/locale/'); - assert.equal(loc.staticBaseURI, 'https://hostname:100/path/version/'); + assert.equal(loc.staticBaseURI, 'https://hostname:100/path/'); }); }); }); diff --git a/src/lib/constants.js b/src/lib/constants.js index dc9fac1bc..4e0a28f1b 100644 --- a/src/lib/constants.js +++ b/src/lib/constants.js @@ -67,3 +67,11 @@ export const X_REP_HINT_DOC_THUMBNAIL = '[jpg?dimensions=1024x1024&paged=false]' export const X_REP_HINT_IMAGE = '[jpg?dimensions=2048x2048,png?dimensions=2048x2048]'; export const X_REP_HINT_VIDEO_DASH = '[dash,mp4][filmstrip]'; export const X_REP_HINT_VIDEO_MP4 = '[mp4]'; + +// These should be updated to match the Preview version in package.json +// whenever a file in that third party directory is updated +export const DOC_STATIC_ASSETS_VERSION = '0.112.0'; +export const MEDIA_STATIC_ASSETS_VERSION = '0.112.0'; +export const MODEL3D_STATIC_ASSETS_VERSION = '0.112.0'; +export const SWF_STATIC_ASSETS_VERSION = '0.112.0'; +export const TEXT_STATIC_ASSETS_VERSION = '0.112.0'; diff --git a/src/lib/util.js b/src/lib/util.js index 2a596e628..0b461a077 100644 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -520,7 +520,7 @@ export function findScriptLocation(name, currentScript = null) { const version = pathFragments[fragmentLength - 3]; const query = anchor.search; const baseURI = anchor.href.replace(fileName, '').replace(query, ''); - const staticBaseURI = baseURI.replace(`${locale}/`, ''); + const staticBaseURI = baseURI.replace(`${version}/${locale}/`, ''); return { origin: anchor.origin, diff --git a/src/lib/viewers/box3d/Box3dRenderer.js b/src/lib/viewers/box3d/Box3dRenderer.js index e0dfc4da9..459a89e9f 100644 --- a/src/lib/viewers/box3d/Box3dRenderer.js +++ b/src/lib/viewers/box3d/Box3dRenderer.js @@ -6,6 +6,7 @@ import { EVENT_SCENE_LOADED, EVENT_TRIGGER_RENDER } from './Box3dConstants'; +import { MODEL3D_STATIC_ASSETS_VERSION } from '../../constants'; const PREVIEW_CAMERA_CONTROLLER_ID = 'orbit_camera'; const PREVIEW_CAMERA_POSITION = { x: 0, y: 0, z: 0 }; @@ -437,7 +438,7 @@ class Box3DRenderer extends EventEmitter { return; } } - this.vrGamepadLoadPromise = this.box3d.addRemoteEntities(`${this.staticBaseURI}third-party/model3d/WebVR/${controllerName}/entities.json`, { isExternal: true }); + this.vrGamepadLoadPromise = this.box3d.addRemoteEntities(`${this.staticBaseURI}third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/WebVR/${controllerName}/entities.json`, { isExternal: true }); this.vrGamepadLoadPromise.then(onGamepadModelLoad); }; diff --git a/src/lib/viewers/box3d/box3dAssets.js b/src/lib/viewers/box3d/box3dAssets.js index defaa4449..185801bd7 100644 --- a/src/lib/viewers/box3d/box3dAssets.js +++ b/src/lib/viewers/box3d/box3dAssets.js @@ -1,4 +1,6 @@ -const STATIC_URI = 'third-party/model3d/'; +import { MODEL3D_STATIC_ASSETS_VERSION } from '../../constants'; + +const STATIC_URI = `third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/`; const JS = [ `${STATIC_URI}boxsdk.min.js`, `${STATIC_URI}three.min.js`, diff --git a/src/lib/viewers/box3d/model3d/SceneEntities.js b/src/lib/viewers/box3d/model3d/SceneEntities.js index b511c0b86..53096e101 100644 --- a/src/lib/viewers/box3d/model3d/SceneEntities.js +++ b/src/lib/viewers/box3d/model3d/SceneEntities.js @@ -1,4 +1,6 @@ import Browser from '../../../Browser'; +import { MODEL3D_STATIC_ASSETS_VERSION } from '../../../constants'; + /** * Returns the default scene entities array * @param {string} prefix Prefix to be used for loading static assets @@ -175,7 +177,7 @@ function sceneEntities(prefix) { stream: false }, representations: [{ - src: `${prefix}third-party/model3d/matcap.png`, + src: `${prefix}third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/matcap.png`, isExternal: true, contentType: 'image/png', contentEncoding: 'identity', @@ -194,7 +196,7 @@ function sceneEntities(prefix) { encoding: 'linear' }, representations: [{ - src: `${prefix}third-party/model3d/HDR_Env0.png`, + src: `${prefix}third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/HDR_Env0.png`, isExternal: true, contentType: 'image/png', contentEncoding: 'identity', @@ -214,7 +216,7 @@ function sceneEntities(prefix) { encoding: 'linear' }, representations: [{ - src: `${prefix}third-party/model3d/HDR_Env1.png`, + src: `${prefix}third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/HDR_Env1.png`, isExternal: true, contentType: 'image/png', contentEncoding: 'identity', @@ -234,7 +236,7 @@ function sceneEntities(prefix) { encoding: 'linear' }, representations: [{ - src: `${prefix}third-party/model3d/HDR_Env2.png`, + src: `${prefix}third-party/model3d/${MODEL3D_STATIC_ASSETS_VERSION}/HDR_Env2.png`, isExternal: true, contentType: 'image/png', contentEncoding: 'identity', diff --git a/src/lib/viewers/doc/DocBase.js b/src/lib/viewers/doc/DocBase.js index 146cd81c0..a4497250e 100644 --- a/src/lib/viewers/doc/DocBase.js +++ b/src/lib/viewers/doc/DocBase.js @@ -13,6 +13,7 @@ import { CLASS_BOX_PREVIEW_FIND_BAR, CLASS_HIDDEN, CLASS_IS_SCROLLABLE, + DOC_STATIC_ASSETS_VERSION, PERMISSION_ANNOTATE, PERMISSION_DOWNLOAD, PRELOAD_REP_NAME @@ -639,8 +640,8 @@ class DocBase extends Base { // Set PDFJS worker & character maps const { file, location } = this.options; const assetUrlCreator = createAssetUrlCreator(location); - PDFJS.workerSrc = assetUrlCreator('third-party/doc/pdf.worker.min.js'); - PDFJS.cMapUrl = `${location.staticBaseURI}third-party/doc/cmaps/`; + PDFJS.workerSrc = assetUrlCreator(`third-party/doc/${DOC_STATIC_ASSETS_VERSION}/pdf.worker.min.js`); + PDFJS.cMapUrl = `${location.staticBaseURI}third-party/doc/${DOC_STATIC_ASSETS_VERSION}/cmaps/`; PDFJS.cMapPacked = true; // Open links in new tab diff --git a/src/lib/viewers/doc/docAssets.js b/src/lib/viewers/doc/docAssets.js index f9369a5e5..119ad368d 100644 --- a/src/lib/viewers/doc/docAssets.js +++ b/src/lib/viewers/doc/docAssets.js @@ -1,3 +1,11 @@ -const STATIC_URI = 'third-party/doc/'; -export const JS = [`${STATIC_URI}compatibility.min.js`, `${STATIC_URI}pdf.min.js`, `${STATIC_URI}pdf_viewer.min.js`, `${STATIC_URI}pdf.worker.min.js`, `${STATIC_URI}exif.min.js`]; +import { DOC_STATIC_ASSETS_VERSION } from '../../constants'; + +const STATIC_URI = `third-party/doc/${DOC_STATIC_ASSETS_VERSION}/`; +export const JS = [ + `${STATIC_URI}compatibility.min.js`, + `${STATIC_URI}pdf.min.js`, + `${STATIC_URI}pdf_viewer.min.js`, + `${STATIC_URI}pdf.worker.min.js`, + `${STATIC_URI}exif.min.js` +]; export const CSS = [`${STATIC_URI}pdf_viewer.css`]; diff --git a/src/lib/viewers/media/Dash.js b/src/lib/viewers/media/Dash.js index 93560747f..ab6c14cd8 100644 --- a/src/lib/viewers/media/Dash.js +++ b/src/lib/viewers/media/Dash.js @@ -4,6 +4,7 @@ import cache from '../../Cache'; import fullscreen from '../../Fullscreen'; import { get } from '../../util'; import { getRepresentation } from '../../file'; +import { MEDIA_STATIC_ASSETS_VERSION } from '../../constants'; import './Dash.scss'; const CSS_CLASS_DASH = 'bp-media-dash'; @@ -107,7 +108,7 @@ class Dash extends VideoBase { * @return {void} */ getJSAssets() { - return ['third-party/media/shaka-player.compiled.js']; + return [`third-party/media/${MEDIA_STATIC_ASSETS_VERSION}/shaka-player.compiled.js`]; } /** diff --git a/src/lib/viewers/media/__tests__/Dash-test.js b/src/lib/viewers/media/__tests__/Dash-test.js index 49564602d..d3da6eebe 100644 --- a/src/lib/viewers/media/__tests__/Dash-test.js +++ b/src/lib/viewers/media/__tests__/Dash-test.js @@ -4,6 +4,7 @@ import VideoBase from '../VideoBase'; import cache from '../../../Cache'; import fullscreen from '../../../Fullscreen'; import * as util from '../../../util'; +import { MEDIA_STATIC_ASSETS_VERSION } from '../../../constants'; let dash; let stubs = {}; @@ -164,7 +165,7 @@ describe('lib/viewers/media/Dash', () => { describe('getJSAssets()', () => { it('should return shaka player assets', () => { - const assets = ['third-party/media/shaka-player.compiled.js']; + const assets = [`third-party/media/${MEDIA_STATIC_ASSETS_VERSION}/shaka-player.compiled.js`]; const returnedAssets = dash.getJSAssets(); expect(returnedAssets).to.deep.equal(assets); }); diff --git a/src/lib/viewers/swf/SWF.js b/src/lib/viewers/swf/SWF.js index 0ccf40aa8..9bab200a2 100644 --- a/src/lib/viewers/swf/SWF.js +++ b/src/lib/viewers/swf/SWF.js @@ -1,4 +1,5 @@ import Base from '../Base'; +import { SWF_STATIC_ASSETS_VERSION } from '../../constants'; const SWF_PARAMS = { allowfullscreen: 'true', @@ -10,7 +11,7 @@ const SWF_PARAMS = { wmode: 'transparent' }; -const JS = ['third-party/swf/swfobject.js']; +const JS = [`third-party/swf/${SWF_STATIC_ASSETS_VERSION}/swfobject.js`]; class SWF extends Base { /** diff --git a/src/lib/viewers/text/CSV.js b/src/lib/viewers/text/CSV.js index 682f20ced..cf8a16b62 100644 --- a/src/lib/viewers/text/CSV.js +++ b/src/lib/viewers/text/CSV.js @@ -1,9 +1,10 @@ import autobind from 'autobind-decorator'; import TextBase from './TextBase'; import { createAssetUrlCreator, get } from '../../util'; +import { TEXT_STATIC_ASSETS_VERSION } from '../../constants'; import './CSV.scss'; -const JS = ['third-party/text/papaparse.min.js', 'csv.js']; +const JS = [`third-party/text/${TEXT_STATIC_ASSETS_VERSION}/papaparse.min.js`, 'csv.js']; @autobind class CSV extends TextBase { diff --git a/src/lib/viewers/text/Markdown.js b/src/lib/viewers/text/Markdown.js index 735fe6d4c..f7de8813f 100644 --- a/src/lib/viewers/text/Markdown.js +++ b/src/lib/viewers/text/Markdown.js @@ -1,11 +1,11 @@ import autobind from 'autobind-decorator'; import Controls from '../../Controls'; import PlainText from './Text'; -import { CLASS_HIDDEN } from '../../constants'; +import { CLASS_HIDDEN, TEXT_STATIC_ASSETS_VERSION } from '../../constants'; import { ICON_FULLSCREEN_IN, ICON_FULLSCREEN_OUT } from '../../icons/icons'; import './Markdown.scss'; -const STATIC_URI = 'third-party/text/'; +const STATIC_URI = `third-party/text/${TEXT_STATIC_ASSETS_VERSION}/`; @autobind class Markdown extends PlainText { diff --git a/src/lib/viewers/text/Text.js b/src/lib/viewers/text/Text.js index 07105a515..3dc0bf835 100644 --- a/src/lib/viewers/text/Text.js +++ b/src/lib/viewers/text/Text.js @@ -2,7 +2,7 @@ import './Text.scss'; import TextBase from './TextBase'; import Browser from '../../Browser'; import Popup from '../../Popup'; -import { CLASS_HIDDEN } from '../../constants'; +import { CLASS_HIDDEN, TEXT_STATIC_ASSETS_VERSION } from '../../constants'; import { ICON_PRINT_CHECKMARK } from '../../icons/icons'; import { HIGHLIGHTTABLE_EXTENSIONS } from './extensions'; import { get, openContentInsideIframe, createAssetUrlCreator, createStylesheet } from '../../util'; @@ -16,7 +16,7 @@ const SIZE_LIMIT_BYTES = 196608; // Time to wait before allowing user to print (we're guessing how long it takes the iframe to load) const PRINT_TIMEOUT_MS = 5000; -const STATIC_URI = 'third-party/text/'; +const STATIC_URI = `third-party/text/${TEXT_STATIC_ASSETS_VERSION}/`; const JS = [`${STATIC_URI}highlight.min.js`]; const CSS = [`${STATIC_URI}github.css`]; @@ -231,7 +231,7 @@ class PlainText extends TextBase { // Give worker location of highlight.js and text content to highlight const assetUrlCreator = createAssetUrlCreator(this.options.location); - const highlightSrc = assetUrlCreator('third-party/text/highlight.min.js'); + const highlightSrc = assetUrlCreator(`third-party/text/${TEXT_STATIC_ASSETS_VERSION}/highlight.min.js`); worker.postMessage({ highlightSrc, text diff --git a/src/lib/viewers/text/__tests__/Markdown-test.js b/src/lib/viewers/text/__tests__/Markdown-test.js index 984297abe..993f85732 100644 --- a/src/lib/viewers/text/__tests__/Markdown-test.js +++ b/src/lib/viewers/text/__tests__/Markdown-test.js @@ -1,6 +1,7 @@ /* eslint-disable no-unused-expressions */ import Markdown from '../Markdown'; import Popup from '../../../Popup'; +import { TEXT_STATIC_ASSETS_VERSION } from '../../../constants'; let containerEl; let markdown; @@ -58,7 +59,7 @@ describe('lib/viewers/text/Markdown', () => { markdown.print(); - expect(markdown.preparePrint).to.be.calledWith(['third-party/text/github.css', 'third-party/text/github-markdown.css', 'preview.css']); + expect(markdown.preparePrint).to.be.calledWith([`third-party/text/${TEXT_STATIC_ASSETS_VERSION}/github.css`, `third-party/text/${TEXT_STATIC_ASSETS_VERSION}/github-markdown.css`, 'preview.css']); expect(markdown.printPopup.show).to.be.calledWith('Preparing to print...', 'Print', sinon.match.func); expect(markdown.printPopup.disableButton).to.be.called; }); diff --git a/src/lib/viewers/text/__tests__/Text-test.js b/src/lib/viewers/text/__tests__/Text-test.js index 1078b9556..524faefd1 100644 --- a/src/lib/viewers/text/__tests__/Text-test.js +++ b/src/lib/viewers/text/__tests__/Text-test.js @@ -4,6 +4,7 @@ import PlainText from '../Text'; import Popup from '../../../Popup'; import TextBase from '../TextBase'; import * as util from '../../../util'; +import { TEXT_STATIC_ASSETS_VERSION } from '../../../constants'; let containerEl; let text; @@ -150,7 +151,7 @@ describe('lib/viewers/text/Text', () => { text.print(); - expect(text.preparePrint).to.be.calledWith(['third-party/text/github.css', 'preview.css']); + expect(text.preparePrint).to.be.calledWith([`third-party/text/${TEXT_STATIC_ASSETS_VERSION}/github.css`, 'preview.css']); expect(text.printPopup.show).to.be.called; expect(text.printPopup.disableButton).to.be.called; }); diff --git a/src/third-party/doc/cmaps/78-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/78-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/78-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/78-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/78-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/78-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/78-H.bcmap b/src/third-party/doc/0.112.0/cmaps/78-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/78-H.bcmap diff --git a/src/third-party/doc/cmaps/78-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/78-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/78-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/78-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/78-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/78-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/78-V.bcmap b/src/third-party/doc/0.112.0/cmaps/78-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/78-V.bcmap diff --git a/src/third-party/doc/cmaps/78ms-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/78ms-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78ms-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/78ms-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/78ms-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/78ms-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/78ms-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/78ms-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/83pv-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/83pv-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/83pv-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/83pv-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/90ms-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/90ms-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/90ms-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/90ms-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/90ms-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/90ms-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/90ms-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/90ms-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/90msp-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/90msp-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/90msp-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/90msp-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/90msp-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/90msp-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/90msp-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/90msp-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/90pv-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/90pv-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/90pv-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/90pv-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/90pv-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/90pv-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/90pv-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/90pv-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/Add-H.bcmap b/src/third-party/doc/0.112.0/cmaps/Add-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Add-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/Add-H.bcmap diff --git a/src/third-party/doc/cmaps/Add-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/Add-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Add-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/Add-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/Add-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/Add-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Add-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/Add-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/Add-V.bcmap b/src/third-party/doc/0.112.0/cmaps/Add-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Add-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/Add-V.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-0.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-0.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-0.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-0.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-1.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-1.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-1.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-1.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-3.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-3.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-3.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-3.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-4.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-4.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-4.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-4.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-5.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-5.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-5.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-5.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-6.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-6.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-6.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-6.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-CNS1-UCS2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-UCS2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-CNS1-UCS2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-CNS1-UCS2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-0.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-0.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-0.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-0.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-1.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-1.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-1.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-1.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-3.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-3.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-3.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-3.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-4.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-4.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-4.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-4.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-5.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-5.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-5.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-5.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-GB1-UCS2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-GB1-UCS2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-GB1-UCS2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-GB1-UCS2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-0.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-0.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-0.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-0.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-1.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-1.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-1.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-1.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-3.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-3.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-3.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-3.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-4.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-4.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-4.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-4.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-5.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-5.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-5.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-5.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-6.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-6.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-6.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-6.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Japan1-UCS2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-UCS2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Japan1-UCS2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Japan1-UCS2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Korea1-0.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-0.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Korea1-0.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-0.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Korea1-1.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-1.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Korea1-1.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-1.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Korea1-2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Korea1-2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-2.bcmap diff --git a/src/third-party/doc/cmaps/Adobe-Korea1-UCS2.bcmap b/src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-UCS2.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Adobe-Korea1-UCS2.bcmap rename to src/third-party/doc/0.112.0/cmaps/Adobe-Korea1-UCS2.bcmap diff --git a/src/third-party/doc/cmaps/B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/B5-H.bcmap diff --git a/src/third-party/doc/cmaps/B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/B5-V.bcmap diff --git a/src/third-party/doc/cmaps/B5pc-H.bcmap b/src/third-party/doc/0.112.0/cmaps/B5pc-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/B5pc-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/B5pc-H.bcmap diff --git a/src/third-party/doc/cmaps/B5pc-V.bcmap b/src/third-party/doc/0.112.0/cmaps/B5pc-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/B5pc-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/B5pc-V.bcmap diff --git a/src/third-party/doc/cmaps/CNS-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/CNS-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/CNS-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/CNS-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/CNS-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/CNS-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/CNS-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/CNS-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/CNS1-H.bcmap b/src/third-party/doc/0.112.0/cmaps/CNS1-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/CNS1-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/CNS1-H.bcmap diff --git a/src/third-party/doc/cmaps/CNS1-V.bcmap b/src/third-party/doc/0.112.0/cmaps/CNS1-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/CNS1-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/CNS1-V.bcmap diff --git a/src/third-party/doc/cmaps/CNS2-H.bcmap b/src/third-party/doc/0.112.0/cmaps/CNS2-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/CNS2-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/CNS2-H.bcmap diff --git a/src/third-party/doc/cmaps/CNS2-V.bcmap b/src/third-party/doc/0.112.0/cmaps/CNS2-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/CNS2-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/CNS2-V.bcmap diff --git a/src/third-party/doc/cmaps/ETHK-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/ETHK-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/ETHK-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/ETHK-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/ETHK-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/ETHK-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/ETHK-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/ETHK-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/ETen-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/ETen-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/ETen-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/ETen-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/ETen-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/ETen-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/ETen-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/ETen-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/ETenms-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/ETenms-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/ETenms-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/ETenms-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/ETenms-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/ETenms-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/ETenms-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/ETenms-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/Ext-H.bcmap b/src/third-party/doc/0.112.0/cmaps/Ext-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Ext-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/Ext-H.bcmap diff --git a/src/third-party/doc/cmaps/Ext-RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/Ext-RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Ext-RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/Ext-RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/Ext-RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/Ext-RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Ext-RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/Ext-RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/Ext-V.bcmap b/src/third-party/doc/0.112.0/cmaps/Ext-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Ext-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/Ext-V.bcmap diff --git a/src/third-party/doc/cmaps/GB-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GB-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GB-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GB-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/GB-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GB-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GB-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GB-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/GB-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GB-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GB-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GB-H.bcmap diff --git a/src/third-party/doc/cmaps/GB-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GB-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GB-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GB-V.bcmap diff --git a/src/third-party/doc/cmaps/GBK-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBK-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBK-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBK-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/GBK-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBK-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBK-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBK-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/GBK2K-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBK2K-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBK2K-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBK2K-H.bcmap diff --git a/src/third-party/doc/cmaps/GBK2K-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBK2K-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBK2K-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBK2K-V.bcmap diff --git a/src/third-party/doc/cmaps/GBKp-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBKp-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBKp-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBKp-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/GBKp-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBKp-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBKp-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBKp-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/GBT-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBT-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBT-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBT-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/GBT-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBT-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBT-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBT-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/GBT-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBT-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBT-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBT-H.bcmap diff --git a/src/third-party/doc/cmaps/GBT-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBT-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBT-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBT-V.bcmap diff --git a/src/third-party/doc/cmaps/GBTpc-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBTpc-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBTpc-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBTpc-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/GBTpc-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBTpc-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBTpc-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBTpc-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/GBpc-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/GBpc-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBpc-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBpc-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/GBpc-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/GBpc-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/GBpc-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/GBpc-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/H.bcmap b/src/third-party/doc/0.112.0/cmaps/H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/H.bcmap rename to src/third-party/doc/0.112.0/cmaps/H.bcmap diff --git a/src/third-party/doc/cmaps/HKdla-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/HKdla-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKdla-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKdla-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/HKdla-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/HKdla-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKdla-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKdla-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/HKdlb-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/HKdlb-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKdlb-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKdlb-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/HKdlb-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/HKdlb-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKdlb-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKdlb-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/HKgccs-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/HKgccs-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKgccs-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKgccs-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/HKgccs-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/HKgccs-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKgccs-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKgccs-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/HKm314-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/HKm314-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKm314-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKm314-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/HKm314-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/HKm314-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKm314-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKm314-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/HKm471-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/HKm471-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKm471-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKm471-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/HKm471-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/HKm471-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKm471-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKm471-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/HKscs-B5-H.bcmap b/src/third-party/doc/0.112.0/cmaps/HKscs-B5-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKscs-B5-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKscs-B5-H.bcmap diff --git a/src/third-party/doc/cmaps/HKscs-B5-V.bcmap b/src/third-party/doc/0.112.0/cmaps/HKscs-B5-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/HKscs-B5-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/HKscs-B5-V.bcmap diff --git a/src/third-party/doc/cmaps/Hankaku.bcmap b/src/third-party/doc/0.112.0/cmaps/Hankaku.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Hankaku.bcmap rename to src/third-party/doc/0.112.0/cmaps/Hankaku.bcmap diff --git a/src/third-party/doc/cmaps/Hiragana.bcmap b/src/third-party/doc/0.112.0/cmaps/Hiragana.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Hiragana.bcmap rename to src/third-party/doc/0.112.0/cmaps/Hiragana.bcmap diff --git a/src/third-party/doc/cmaps/KSC-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/KSC-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSC-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSC-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/KSC-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/KSC-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSC-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSC-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/KSC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/KSC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSC-H.bcmap diff --git a/src/third-party/doc/cmaps/KSC-Johab-H.bcmap b/src/third-party/doc/0.112.0/cmaps/KSC-Johab-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSC-Johab-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSC-Johab-H.bcmap diff --git a/src/third-party/doc/cmaps/KSC-Johab-V.bcmap b/src/third-party/doc/0.112.0/cmaps/KSC-Johab-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSC-Johab-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSC-Johab-V.bcmap diff --git a/src/third-party/doc/cmaps/KSC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/KSC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSC-V.bcmap diff --git a/src/third-party/doc/cmaps/KSCms-UHC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/KSCms-UHC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSCms-UHC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSCms-UHC-H.bcmap diff --git a/src/third-party/doc/cmaps/KSCms-UHC-HW-H.bcmap b/src/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSCms-UHC-HW-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-H.bcmap diff --git a/src/third-party/doc/cmaps/KSCms-UHC-HW-V.bcmap b/src/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSCms-UHC-HW-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSCms-UHC-HW-V.bcmap diff --git a/src/third-party/doc/cmaps/KSCms-UHC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/KSCms-UHC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSCms-UHC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSCms-UHC-V.bcmap diff --git a/src/third-party/doc/cmaps/KSCpc-EUC-H.bcmap b/src/third-party/doc/0.112.0/cmaps/KSCpc-EUC-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSCpc-EUC-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSCpc-EUC-H.bcmap diff --git a/src/third-party/doc/cmaps/KSCpc-EUC-V.bcmap b/src/third-party/doc/0.112.0/cmaps/KSCpc-EUC-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/KSCpc-EUC-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/KSCpc-EUC-V.bcmap diff --git a/src/third-party/doc/cmaps/Katakana.bcmap b/src/third-party/doc/0.112.0/cmaps/Katakana.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Katakana.bcmap rename to src/third-party/doc/0.112.0/cmaps/Katakana.bcmap diff --git a/src/third-party/doc/cmaps/LICENSE b/src/third-party/doc/0.112.0/cmaps/LICENSE similarity index 100% rename from src/third-party/doc/cmaps/LICENSE rename to src/third-party/doc/0.112.0/cmaps/LICENSE diff --git a/src/third-party/doc/cmaps/NWP-H.bcmap b/src/third-party/doc/0.112.0/cmaps/NWP-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/NWP-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/NWP-H.bcmap diff --git a/src/third-party/doc/cmaps/NWP-V.bcmap b/src/third-party/doc/0.112.0/cmaps/NWP-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/NWP-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/NWP-V.bcmap diff --git a/src/third-party/doc/cmaps/RKSJ-H.bcmap b/src/third-party/doc/0.112.0/cmaps/RKSJ-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/RKSJ-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/RKSJ-H.bcmap diff --git a/src/third-party/doc/cmaps/RKSJ-V.bcmap b/src/third-party/doc/0.112.0/cmaps/RKSJ-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/RKSJ-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/RKSJ-V.bcmap diff --git a/src/third-party/doc/cmaps/Roman.bcmap b/src/third-party/doc/0.112.0/cmaps/Roman.bcmap similarity index 100% rename from src/third-party/doc/cmaps/Roman.bcmap rename to src/third-party/doc/0.112.0/cmaps/Roman.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UCS2-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UCS2-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-H.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UCS2-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UCS2-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UCS2-V.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UTF16-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UTF16-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-H.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UTF16-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UTF16-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UTF16-V.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UTF8-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UTF8-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-H.bcmap diff --git a/src/third-party/doc/cmaps/UniCNS-UTF8-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniCNS-UTF8-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniCNS-UTF8-V.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UCS2-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UCS2-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UCS2-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UCS2-H.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UCS2-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UCS2-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UCS2-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UCS2-V.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UTF16-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UTF16-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UTF16-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UTF16-H.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UTF16-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UTF16-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UTF16-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UTF16-V.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UTF8-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UTF8-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UTF8-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UTF8-H.bcmap diff --git a/src/third-party/doc/cmaps/UniGB-UTF8-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniGB-UTF8-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniGB-UTF8-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniGB-UTF8-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UCS2-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UCS2-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UCS2-HW-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UCS2-HW-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UCS2-HW-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UCS2-HW-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-HW-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UCS2-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UCS2-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UCS2-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UTF16-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UTF16-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UTF16-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UTF16-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UTF16-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UTF8-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UTF8-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS-UTF8-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS-UTF8-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS-UTF8-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS2004-UTF16-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS2004-UTF16-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS2004-UTF16-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS2004-UTF16-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF16-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS2004-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS2004-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS2004-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS2004-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS2004-UTF8-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS2004-UTF8-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJIS2004-UTF8-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJIS2004-UTF8-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJIS2004-UTF8-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJISPro-UCS2-HW-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-HW-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISPro-UCS2-HW-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-HW-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJISPro-UCS2-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISPro-UCS2-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISPro-UCS2-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJISPro-UTF8-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISPro-UTF8-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISPro-UTF8-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISPro-UTF8-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJISX0213-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISX0213-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJISX0213-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISX0213-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISX0213-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniJISX02132004-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISX02132004-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniJISX02132004-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniJISX02132004-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniJISX02132004-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UCS2-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UCS2-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UCS2-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UCS2-H.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UCS2-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UCS2-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UCS2-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UCS2-V.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UTF16-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UTF16-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UTF16-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UTF16-H.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UTF16-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UTF16-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UTF16-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UTF16-V.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UTF32-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UTF32-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UTF32-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UTF32-H.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UTF32-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UTF32-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UTF32-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UTF32-V.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UTF8-H.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UTF8-H.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UTF8-H.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UTF8-H.bcmap diff --git a/src/third-party/doc/cmaps/UniKS-UTF8-V.bcmap b/src/third-party/doc/0.112.0/cmaps/UniKS-UTF8-V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/UniKS-UTF8-V.bcmap rename to src/third-party/doc/0.112.0/cmaps/UniKS-UTF8-V.bcmap diff --git a/src/third-party/doc/cmaps/V.bcmap b/src/third-party/doc/0.112.0/cmaps/V.bcmap similarity index 100% rename from src/third-party/doc/cmaps/V.bcmap rename to src/third-party/doc/0.112.0/cmaps/V.bcmap diff --git a/src/third-party/doc/cmaps/WP-Symbol.bcmap b/src/third-party/doc/0.112.0/cmaps/WP-Symbol.bcmap similarity index 100% rename from src/third-party/doc/cmaps/WP-Symbol.bcmap rename to src/third-party/doc/0.112.0/cmaps/WP-Symbol.bcmap diff --git a/src/third-party/doc/compatibility.js b/src/third-party/doc/0.112.0/compatibility.js similarity index 100% rename from src/third-party/doc/compatibility.js rename to src/third-party/doc/0.112.0/compatibility.js diff --git a/src/third-party/doc/compatibility.min.js b/src/third-party/doc/0.112.0/compatibility.min.js similarity index 100% rename from src/third-party/doc/compatibility.min.js rename to src/third-party/doc/0.112.0/compatibility.min.js diff --git a/src/third-party/doc/cursors/highlight.cur b/src/third-party/doc/0.112.0/cursors/highlight.cur similarity index 100% rename from src/third-party/doc/cursors/highlight.cur rename to src/third-party/doc/0.112.0/cursors/highlight.cur diff --git a/src/third-party/doc/cursors/point.cur b/src/third-party/doc/0.112.0/cursors/point.cur similarity index 100% rename from src/third-party/doc/cursors/point.cur rename to src/third-party/doc/0.112.0/cursors/point.cur diff --git a/src/third-party/doc/exif.js b/src/third-party/doc/0.112.0/exif.js similarity index 100% rename from src/third-party/doc/exif.js rename to src/third-party/doc/0.112.0/exif.js diff --git a/src/third-party/doc/exif.min.js b/src/third-party/doc/0.112.0/exif.min.js similarity index 100% rename from src/third-party/doc/exif.min.js rename to src/third-party/doc/0.112.0/exif.min.js diff --git a/src/third-party/doc/pdf.js b/src/third-party/doc/0.112.0/pdf.js similarity index 100% rename from src/third-party/doc/pdf.js rename to src/third-party/doc/0.112.0/pdf.js diff --git a/src/third-party/doc/pdf.min.js b/src/third-party/doc/0.112.0/pdf.min.js similarity index 100% rename from src/third-party/doc/pdf.min.js rename to src/third-party/doc/0.112.0/pdf.min.js diff --git a/src/third-party/doc/pdf.worker.js b/src/third-party/doc/0.112.0/pdf.worker.js similarity index 100% rename from src/third-party/doc/pdf.worker.js rename to src/third-party/doc/0.112.0/pdf.worker.js diff --git a/src/third-party/doc/pdf.worker.min.js b/src/third-party/doc/0.112.0/pdf.worker.min.js similarity index 100% rename from src/third-party/doc/pdf.worker.min.js rename to src/third-party/doc/0.112.0/pdf.worker.min.js diff --git a/src/third-party/doc/pdf_viewer.css b/src/third-party/doc/0.112.0/pdf_viewer.css similarity index 100% rename from src/third-party/doc/pdf_viewer.css rename to src/third-party/doc/0.112.0/pdf_viewer.css diff --git a/src/third-party/doc/pdf_viewer.js b/src/third-party/doc/0.112.0/pdf_viewer.js similarity index 100% rename from src/third-party/doc/pdf_viewer.js rename to src/third-party/doc/0.112.0/pdf_viewer.js diff --git a/src/third-party/doc/pdf_viewer.min.js b/src/third-party/doc/0.112.0/pdf_viewer.min.js similarity index 100% rename from src/third-party/doc/pdf_viewer.min.js rename to src/third-party/doc/0.112.0/pdf_viewer.min.js diff --git a/src/third-party/media/shaka-player.compiled.js b/src/third-party/media/0.112.0/shaka-player.compiled.js similarity index 100% rename from src/third-party/media/shaka-player.compiled.js rename to src/third-party/media/0.112.0/shaka-player.compiled.js diff --git a/src/third-party/model3d/HDR_Env0.png b/src/third-party/model3d/0.112.0/HDR_Env0.png similarity index 100% rename from src/third-party/model3d/HDR_Env0.png rename to src/third-party/model3d/0.112.0/HDR_Env0.png diff --git a/src/third-party/model3d/HDR_Env1.png b/src/third-party/model3d/0.112.0/HDR_Env1.png similarity index 100% rename from src/third-party/model3d/HDR_Env1.png rename to src/third-party/model3d/0.112.0/HDR_Env1.png diff --git a/src/third-party/model3d/HDR_Env2.png b/src/third-party/model3d/0.112.0/HDR_Env2.png similarity index 100% rename from src/third-party/model3d/HDR_Env2.png rename to src/third-party/model3d/0.112.0/HDR_Env2.png diff --git a/src/third-party/model3d/WebVR/VRConfig.js b/src/third-party/model3d/0.112.0/WebVR/VRConfig.js similarity index 100% rename from src/third-party/model3d/WebVR/VRConfig.js rename to src/third-party/model3d/0.112.0/WebVR/VRConfig.js diff --git a/src/third-party/model3d/WebVR/oculusTouchImages/1024/1.jpg b/src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/1.jpg similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchImages/1024/1.jpg rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/1.jpg diff --git a/src/third-party/model3d/WebVR/oculusTouchImages/1024/2.jpg b/src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/2.jpg similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchImages/1024/2.jpg rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/1024/2.jpg diff --git a/src/third-party/model3d/WebVR/oculusTouchImages/64/1.jpg b/src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/1.jpg similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchImages/64/1.jpg rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/1.jpg diff --git a/src/third-party/model3d/WebVR/oculusTouchImages/64/2.jpg b/src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/2.jpg similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchImages/64/2.jpg rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchImages/64/2.jpg diff --git a/src/third-party/model3d/WebVR/oculusTouchLeft/entities.json b/src/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/entities.json similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchLeft/entities.json rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/entities.json diff --git a/src/third-party/model3d/WebVR/oculusTouchLeft/geometry.bin b/src/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/geometry.bin similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchLeft/geometry.bin rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchLeft/geometry.bin diff --git a/src/third-party/model3d/WebVR/oculusTouchRight/entities.json b/src/third-party/model3d/0.112.0/WebVR/oculusTouchRight/entities.json similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchRight/entities.json rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchRight/entities.json diff --git a/src/third-party/model3d/WebVR/oculusTouchRight/geometry.bin b/src/third-party/model3d/0.112.0/WebVR/oculusTouchRight/geometry.bin similarity index 100% rename from src/third-party/model3d/WebVR/oculusTouchRight/geometry.bin rename to src/third-party/model3d/0.112.0/WebVR/oculusTouchRight/geometry.bin diff --git a/src/third-party/model3d/WebVR/viveController/entities.json b/src/third-party/model3d/0.112.0/WebVR/viveController/entities.json similarity index 100% rename from src/third-party/model3d/WebVR/viveController/entities.json rename to src/third-party/model3d/0.112.0/WebVR/viveController/entities.json diff --git a/src/third-party/model3d/WebVR/viveController/geometry.bin b/src/third-party/model3d/0.112.0/WebVR/viveController/geometry.bin similarity index 100% rename from src/third-party/model3d/WebVR/viveController/geometry.bin rename to src/third-party/model3d/0.112.0/WebVR/viveController/geometry.bin diff --git a/src/third-party/model3d/WebVR/viveController/images/2048/1.png b/src/third-party/model3d/0.112.0/WebVR/viveController/images/2048/1.png similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/2048/1.png rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/2048/1.png diff --git a/src/third-party/model3d/WebVR/viveController/images/2048/2.jpg b/src/third-party/model3d/0.112.0/WebVR/viveController/images/2048/2.jpg similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/2048/2.jpg rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/2048/2.jpg diff --git a/src/third-party/model3d/WebVR/viveController/images/2048/3.jpg b/src/third-party/model3d/0.112.0/WebVR/viveController/images/2048/3.jpg similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/2048/3.jpg rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/2048/3.jpg diff --git a/src/third-party/model3d/WebVR/viveController/images/256/4.png b/src/third-party/model3d/0.112.0/WebVR/viveController/images/256/4.png similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/256/4.png rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/256/4.png diff --git a/src/third-party/model3d/WebVR/viveController/images/64/1.png b/src/third-party/model3d/0.112.0/WebVR/viveController/images/64/1.png similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/64/1.png rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/64/1.png diff --git a/src/third-party/model3d/WebVR/viveController/images/64/2.jpg b/src/third-party/model3d/0.112.0/WebVR/viveController/images/64/2.jpg similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/64/2.jpg rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/64/2.jpg diff --git a/src/third-party/model3d/WebVR/viveController/images/64/3.jpg b/src/third-party/model3d/0.112.0/WebVR/viveController/images/64/3.jpg similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/64/3.jpg rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/64/3.jpg diff --git a/src/third-party/model3d/WebVR/viveController/images/64/4.png b/src/third-party/model3d/0.112.0/WebVR/viveController/images/64/4.png similarity index 100% rename from src/third-party/model3d/WebVR/viveController/images/64/4.png rename to src/third-party/model3d/0.112.0/WebVR/viveController/images/64/4.png diff --git a/src/third-party/model3d/box3d-runtime.min.js b/src/third-party/model3d/0.112.0/box3d-runtime.min.js similarity index 100% rename from src/third-party/model3d/box3d-runtime.min.js rename to src/third-party/model3d/0.112.0/box3d-runtime.min.js diff --git a/src/third-party/model3d/boxsdk.min.js b/src/third-party/model3d/0.112.0/boxsdk.min.js similarity index 100% rename from src/third-party/model3d/boxsdk.min.js rename to src/third-party/model3d/0.112.0/boxsdk.min.js diff --git a/src/third-party/model3d/matcap.png b/src/third-party/model3d/0.112.0/matcap.png similarity index 100% rename from src/third-party/model3d/matcap.png rename to src/third-party/model3d/0.112.0/matcap.png diff --git a/src/third-party/model3d/three.min.js b/src/third-party/model3d/0.112.0/three.min.js similarity index 100% rename from src/third-party/model3d/three.min.js rename to src/third-party/model3d/0.112.0/three.min.js diff --git a/src/third-party/model3d/webvr-polyfill.js b/src/third-party/model3d/0.112.0/webvr-polyfill.js similarity index 100% rename from src/third-party/model3d/webvr-polyfill.js rename to src/third-party/model3d/0.112.0/webvr-polyfill.js diff --git a/src/third-party/swf/swfobject.js b/src/third-party/swf/0.112.0/swfobject.js similarity index 100% rename from src/third-party/swf/swfobject.js rename to src/third-party/swf/0.112.0/swfobject.js diff --git a/src/third-party/text/github-markdown.css b/src/third-party/text/0.112.0/github-markdown.css similarity index 100% rename from src/third-party/text/github-markdown.css rename to src/third-party/text/0.112.0/github-markdown.css diff --git a/src/third-party/text/github.css b/src/third-party/text/0.112.0/github.css similarity index 100% rename from src/third-party/text/github.css rename to src/third-party/text/0.112.0/github.css diff --git a/src/third-party/text/highlight.min.js b/src/third-party/text/0.112.0/highlight.min.js similarity index 100% rename from src/third-party/text/highlight.min.js rename to src/third-party/text/0.112.0/highlight.min.js diff --git a/src/third-party/text/papaparse.js b/src/third-party/text/0.112.0/papaparse.js similarity index 100% rename from src/third-party/text/papaparse.js rename to src/third-party/text/0.112.0/papaparse.js diff --git a/src/third-party/text/papaparse.min.js b/src/third-party/text/0.112.0/papaparse.min.js similarity index 100% rename from src/third-party/text/papaparse.min.js rename to src/third-party/text/0.112.0/papaparse.min.js diff --git a/src/third-party/text/remarkable.min.js b/src/third-party/text/0.112.0/remarkable.min.js similarity index 100% rename from src/third-party/text/remarkable.min.js rename to src/third-party/text/0.112.0/remarkable.min.js